rpc/client/http: log error (#5182)

Closes #3410
This commit is contained in:
Anton Kaliaev
2020-07-31 13:36:14 +04:00
committed by GitHub
parent 4a06dc9916
commit db345066a8

View File

@@ -529,7 +529,9 @@ func (w *WSEvents) OnStart() error {
// OnStop implements service.Service by stopping WSClient.
func (w *WSEvents) OnStop() {
_ = w.ws.Stop()
if err := w.ws.Stop(); err != nil {
w.Logger.Error("Can't stop ws client", "err", err)
}
}
// Subscribe implements EventsClient by using WSClient to subscribe given