Skip to content

Commit

Permalink
Merge pull request #2265 from PlatONnetwork/feature/bump-version-to-1…
Browse files Browse the repository at this point in the history
….5.0

fix the closing logic of backend
  • Loading branch information
benbaley committed May 8, 2024
2 parents 8e09848 + f899f89 commit fb7196c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion eth/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 0 additions & 6 deletions p2p/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit fb7196c

Please sign in to comment.