delete impossible check

This commit is contained in:
maskpp 2025-05-10 21:53:53 +08:00
parent fa86416ce9
commit 1e8a3de9a3

View file

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