mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-06 11:25:02 +00:00
eth/connmanager: no need to store srv
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
628c5e5b7b
commit
cb5d672649
1 changed files with 0 additions and 2 deletions
|
|
@ -47,7 +47,6 @@ const (
|
|||
// peerDropInterval to make space for new peers
|
||||
type connManager struct {
|
||||
connmanConfig
|
||||
srv *p2p.Server
|
||||
peersFunc getPeersFunc
|
||||
syncFunc getSyncFunc
|
||||
|
||||
|
|
@ -103,7 +102,6 @@ func newConnManager(config *connmanConfig) *connManager {
|
|||
|
||||
func (cm *connManager) Start(srv *p2p.Server, syncFunc getSyncFunc) {
|
||||
cm.wg.Add(1)
|
||||
cm.srv = srv
|
||||
cm.peersFunc = srv.Peers
|
||||
cm.syncFunc = syncFunc
|
||||
cm.sub = srv.SubscribeEvents(cm.peerEventCh)
|
||||
|
|
|
|||
Loading…
Reference in a new issue