From 81b0a6cd50cf3a66c5212b2ad3c8249c7ba1034d Mon Sep 17 00:00:00 2001 From: niuxiaojie81 <85773309@qq.com> Date: Wed, 8 May 2024 17:15:02 +0800 Subject: [PATCH] =?UTF-8?q?backend=E5=85=B3=E9=97=AD=E6=97=B6=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=BF=85=E8=A6=81=E5=85=B3=E9=97=ADntab=EF=BC=8C?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E6=BD=9C=E5=9C=A8=E7=9A=84ntab=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E7=9A=84=E9=A3=8E=E9=99=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eth/backend.go | 1 - p2p/server.go | 6 ------ 2 files changed, 7 deletions(-) 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()