node: fix lint issue in rpcstack.go (#25774)
This commit is contained in:
parent
0ee8b273f2
commit
3db4a13230
@ -267,7 +267,7 @@ func (h *httpServer) doStop() {
|
||||
h.wsHandler.Store((*rpcHandler)(nil))
|
||||
wsHandler.server.Stop()
|
||||
}
|
||||
|
||||
|
||||
ctx, cancel := context.WithTimeout(context.Background(), shutdownTimeout)
|
||||
defer cancel()
|
||||
err := h.server.Shutdown(ctx)
|
||||
@ -275,7 +275,7 @@ func (h *httpServer) doStop() {
|
||||
h.log.Warn("HTTP server graceful shutdown timed out")
|
||||
h.server.Close()
|
||||
}
|
||||
|
||||
|
||||
h.listener.Close()
|
||||
h.log.Info("HTTP server stopped", "endpoint", h.listener.Addr())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user