Skip to content

Commit

Permalink
remove decrement
Browse files Browse the repository at this point in the history
  • Loading branch information
brayniac committed Oct 14, 2024
1 parent 7af268b commit 555104c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/clients/cache/redis/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ async fn task(
}
},
ClientWorkItemKind::Reconnect => {
CONNECT_CURR.sub(1);
continue;
}
};
Expand All @@ -207,11 +206,9 @@ async fn task(
let _ = RESPONSE_LATENCY.increment(latency_ns);
}
Err(ResponseError::Exception) => {
CONNECT_CURR.decrement();
RESPONSE_EX.increment();
}
Err(ResponseError::Timeout) => {
CONNECT_CURR.decrement();
RESPONSE_TIMEOUT.increment();
}
Err(ResponseError::Ratelimited) => {
Expand Down

0 comments on commit 555104c

Please sign in to comment.