Merge pull request #5708 from ethereum-optimism/felipe/fix-consensus-shutdown

fix(proxyd): add missing shutdown for consensus poller
This commit is contained in:
OptimismBot 2023-05-18 00:29:47 -04:00 committed by GitHub
commit 73607dbf62

@ -222,6 +222,11 @@ func (s *Server) Shutdown() {
if s.wsServer != nil { if s.wsServer != nil {
_ = s.wsServer.Shutdown(context.Background()) _ = s.wsServer.Shutdown(context.Background())
} }
for _, bg := range s.BackendGroups {
if bg.Consensus != nil {
bg.Consensus.Shutdown()
}
}
} }
func (s *Server) HandleHealthz(w http.ResponseWriter, r *http.Request) { func (s *Server) HandleHealthz(w http.ResponseWriter, r *http.Request) {