Skip to content

Commit

Permalink
fix: open connections metrics increment (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
alencardc authored Aug 29, 2023
1 parent 84d7e0b commit 11e055e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,8 @@ impl<M: Manager> Pool<M> {
match self.0.manager.connect().await {
Ok(c) => {
self.0.state.num_open.fetch_add(1, Ordering::Relaxed);
increment_gauge!(OPENED_TOTAL, 1.0);
increment_counter!(OPEN_CONNECTIONS);
increment_gauge!(OPEN_CONNECTIONS, 1.0);
increment_counter!(OPENED_TOTAL);

let conn = Conn {
raw: Some(c),
Expand Down

0 comments on commit 11e055e

Please sign in to comment.