Skip to content

Commit 966b8e0

Browse files
authored
Report checkout error when all servers are down (#736)
We shouldn't report checkout_success when we are going to return Error.
1 parent c9270a4 commit 966b8e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ impl ConnectionPool {
813813
}
814814
}
815815

816-
client_stats.checkout_success();
816+
client_stats.checkout_error();
817817

818818
Err(Error::AllServersDown)
819819
}

0 commit comments

Comments
 (0)