mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-16 16:10:40 +00:00
eth/dropper: remove unused peerEvent channel
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
4a69bf90ff
commit
ff66b1c42e
1 changed files with 0 additions and 3 deletions
|
|
@ -64,8 +64,6 @@ type dropper struct {
|
|||
// We handle Dialed and Inbound connections separately
|
||||
peerDropTimer *time.Timer
|
||||
|
||||
peerEventCh chan *p2p.PeerEvent // channel for peer event changes
|
||||
|
||||
wg sync.WaitGroup // wg for graceful shutdown
|
||||
shutdownCh chan struct{}
|
||||
}
|
||||
|
|
@ -82,7 +80,6 @@ func newDropper(maxDialPeers, maxInboundPeers int) *dropper {
|
|||
maxDialPeers: maxDialPeers,
|
||||
maxInboundPeers: maxInboundPeers,
|
||||
peerDropTimer: time.NewTimer(randomDuration(peerDropIntervalMin, peerDropIntervalMax)),
|
||||
peerEventCh: make(chan *p2p.PeerEvent),
|
||||
shutdownCh: make(chan struct{}),
|
||||
}
|
||||
if peerDropIntervalMin > peerDropIntervalMax {
|
||||
|
|
|
|||
Loading…
Reference in a new issue