Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for Playground setup possible error (#3061)
# Description Updated handling of setting up log filter override Unix socket in `observe` crate. In some specific situation the socet cannot be created due to `Address already in use` error in `playground-autopilot` and `playground-orderbook` containers when `autopilot` or `orderbook` service previously crashed. This crash can be caused by misconfigruation of environment (RPC node url) or just by stopping manually `playground-chain` container. # Changes In case of `UnixListener::bind()` fails on socket file with OS error `AddrInUse` afromentioned file is removed and a new attempt is made to bind the socket. If there is any error during the file remove it will be only logged as it could happen that file will be removed in mean time by other process. ## How to test Follow `playground/README.md` instruction, but in environment setup provide wrong address to the node (`ETH_RPC_URL` variable). Alternativelly when playground containers are working fine, stop `playground-chain` container and restart `playground-autopilot` or `playground-orderbook` containers. They will enter a loop of endless restarts. --------- Co-authored-by: Martin Magnus <[email protected]>
- Loading branch information