diff --git a/eth/backend.go b/eth/backend.go index 06c7e0290d..73673d8d87 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -677,7 +677,6 @@ func (s *Ethereum) Stop() error { s.ethDialCandidates.Close() s.snapDialCandidates.Close() s.p2pServer.CloseConsensusDial() - s.p2pServer.CloseDiscovery() s.handler.Stop() // Then stop everything else. diff --git a/p2p/server.go b/p2p/server.go index 52aefbc13f..33db0a790b 100644 --- a/p2p/server.go +++ b/p2p/server.go @@ -1262,12 +1262,6 @@ func (srv *Server) PeersInfo() []*PeerInfo { return infos } -func (srv *Server) CloseDiscovery() { - srv.ntab.Close() - srv.discmix.Close() - srv.log.Info("Close ntab and discmix") -} - func (srv *Server) StartWatching(eventMux *event.TypeMux) { srv.eventMux = eventMux go srv.watching()