Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exit program properly when Run is done (#45)
Conduit has been running the node indexer, and when `Run` exited on an error the indexer just hung indefinitely, and needed to be terminated. This happened because we don't trigger the exiting condition when `Run` exits with an error. This PR makes sure the context is cancelled when `Run` exits, and that `main.go` exits when we either get a signal, or the context has been cancelled.
- Loading branch information