To simplify the management of the lifecycle of the various components, we are using the stopper.Stopper utility
taken from https://github.com/cockroachdb/replicator
The code that implements the Server interface has been refactored to take advantage of it.
To simplify the management of the lifecycle of the various components, we are using the stopper.Stopper utility taken from https://github.com/cockroachdb/replicator The code that implements the Server interface has been refactored to take advantage of it.
This change is![Reviewable](https://reviewable.io/review_button.svg)