Unverified Commit 3db4a132 authored by Felix Lange's avatar Felix Lange Committed by GitHub

node: fix lint issue in rpcstack.go (#25774)

parent 0ee8b273
......@@ -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())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment