Fix connection limit check. (#1508)

This commit is contained in:
Roman Borschel 2020-03-24 12:27:56 +01:00 committed by GitHub
parent d6a20a7c61
commit 5f86f15dda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 })
}
}