make evictPeer proc public for tests

This commit is contained in:
Ivan FB 2026-05-07 14:43:11 +02:00
parent 7e59b2c2cc
commit 070949f5fc
No known key found for this signature in database
GPG Key ID: DF0C67A04C543270

View File

@ -537,7 +537,7 @@ proc connectedPeers*(
return (inPeers, outPeers)
proc evictPeer(pm: PeerManager, peerId: PeerId) {.async.} =
proc evictPeer*(pm: PeerManager, peerId: PeerId) {.async.} =
## Policy-based eviction (relay-peer limit, IP colocation, pruning).
## Skips the disconnect when the peer has an in-flight store request to
## avoid aborting active store requests.