mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-04-25 11:02:12 +00:00
Fix connection limit check. (#1508)
This commit is contained in:
parent
d6a20a7c61
commit
5f86f15dda
@ -871,7 +871,7 @@ impl PoolLimits {
|
||||
{
|
||||
if let Some(limit) = limit {
|
||||
let current = current();
|
||||
if limit >= current {
|
||||
if current >= limit {
|
||||
return Err(ConnectionLimit { limit, current })
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user