Report checkout error when all servers are down (#736)

We shouldn't report checkout_success when we are going to return Error.
This commit is contained in:
Mostafa Abdelraouf
2024-05-08 12:18:27 -05:00
committed by GitHub
parent c9270a47d4
commit 966b8e093c

View File

@@ -813,7 +813,7 @@ impl ConnectionPool {
}
}
client_stats.checkout_success();
client_stats.checkout_error();
Err(Error::AllServersDown)
}