From db345066a8f5dc63ce5040558e3903e3acacc7e2 Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Fri, 31 Jul 2020 13:36:14 +0400 Subject: [PATCH] rpc/client/http: log error (#5182) Closes #3410 --- rpc/client/http/http.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpc/client/http/http.go b/rpc/client/http/http.go index 25e0fe5ee..43a362a46 100644 --- a/rpc/client/http/http.go +++ b/rpc/client/http/http.go @@ -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