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

pull/25674/head
Felix Lange 2 years ago committed by GitHub
parent 0ee8b273f2
commit 3db4a13230
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      node/rpcstack.go

@ -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…
Cancel
Save