From 5f86f15dda3bda994e37389a74d03a76d8d388e5 Mon Sep 17 00:00:00 2001 From: Roman Borschel Date: Tue, 24 Mar 2020 12:27:56 +0100 Subject: [PATCH] Fix connection limit check. (#1508) --- core/src/connection/pool.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/connection/pool.rs b/core/src/connection/pool.rs index 7f92422decf..fcfee926388 100644 --- a/core/src/connection/pool.rs +++ b/core/src/connection/pool.rs @@ -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 }) } }