mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 22:56:43 +00:00
delete impossible check
This commit is contained in:
parent
fa86416ce9
commit
1e8a3de9a3
1 changed files with 0 additions and 3 deletions
|
|
@ -82,9 +82,6 @@ func newDropper(maxDialPeers, maxInboundPeers int) *dropper {
|
||||||
peerDropTimer: time.NewTimer(randomDuration(peerDropIntervalMin, peerDropIntervalMax)),
|
peerDropTimer: time.NewTimer(randomDuration(peerDropIntervalMin, peerDropIntervalMax)),
|
||||||
shutdownCh: make(chan struct{}),
|
shutdownCh: make(chan struct{}),
|
||||||
}
|
}
|
||||||
if peerDropIntervalMin > peerDropIntervalMax {
|
|
||||||
panic("peerDropIntervalMin duration must be less than or equal to peerDropIntervalMax duration")
|
|
||||||
}
|
|
||||||
return cm
|
return cm
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue