Skip to content

Commit

Permalink
balancer: fix build (#1213)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyc3 authored Jan 11, 2024
1 parent 8881023 commit 5d7baad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/ott-balancer/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ impl Service<Request<IncomingBody>> for BalancerService {
// Spawn a task to handle the websocket connection.
let _ = tokio::task::Builder::new().name("client connection").spawn(
async move {
GUAGE_CLIENTS.inc();
GAUGE_CLIENTS.inc();
if let Err(e) = client_entry(room_name, websocket, link).await {
error!("Error in websocket connection: {}", e);
}
GUAGE_CLIENTS.dec();
GAUGE_CLIENTS.dec();
},
);

Expand Down

0 comments on commit 5d7baad

Please sign in to comment.