From 966b8e093cc77b9ac8db15732a8ae321a8abfcbd Mon Sep 17 00:00:00 2001 From: Mostafa Abdelraouf Date: Wed, 8 May 2024 12:18:27 -0500 Subject: [PATCH] Report checkout error when all servers are down (#736) We shouldn't report checkout_success when we are going to return Error. --- src/pool.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pool.rs b/src/pool.rs index c03aaf4..7915a0a 100644 --- a/src/pool.rs +++ b/src/pool.rs @@ -813,7 +813,7 @@ impl ConnectionPool { } } - client_stats.checkout_success(); + client_stats.checkout_error(); Err(Error::AllServersDown) }