Skip to content

Commit

Permalink
Report checkout error when all servers are down (#736)
Browse files Browse the repository at this point in the history
We shouldn't report checkout_success when we are going to return Error.
  • Loading branch information
drdrsh authored May 8, 2024
1 parent c9270a4 commit 966b8e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ impl ConnectionPool {
}
}

client_stats.checkout_success();
client_stats.checkout_error();

Err(Error::AllServersDown)
}
Expand Down

0 comments on commit 966b8e0

Please sign in to comment.