Skip to content

Commit

Permalink
Fix connection limit check. (#1508)
Browse files Browse the repository at this point in the history
  • Loading branch information
romanb committed Mar 24, 2020
1 parent d6a20a7 commit 5f86f15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/connection/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
}
}
Expand Down

0 comments on commit 5f86f15

Please sign in to comment.