eth/dropper: remove unused peerEvent channel

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
Csaba Kiraly 2025-04-11 12:00:28 +02:00
parent 4a69bf90ff
commit ff66b1c42e
No known key found for this signature in database
GPG key ID: 0FE274EE8C95166E

View file

@ -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 {