Skip to content

Commit 5f86f15

Browse files
authored
Fix connection limit check. (#1508)
1 parent d6a20a7 commit 5f86f15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/connection/pool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ impl PoolLimits {
871871
{
872872
if let Some(limit) = limit {
873873
let current = current();
874-
if limit >= current {
874+
if current >= limit {
875875
return Err(ConnectionLimit { limit, current })
876876
}
877877
}

0 commit comments

Comments
 (0)