Skip to content

Commit

Permalink
balancer: fix clients not being removed from balancer context on disc…
Browse files Browse the repository at this point in the history
…onnect

possibly related to #1207?
  • Loading branch information
dyc3 committed Jan 11, 2024
1 parent 5d7baad commit 82b8584
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/ott-balancer/src/balancer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ impl BalancerContext {
let monolith = self.find_monolith_mut(client_id)?;
monolith.remove_client(client_id);
monolith.send(B2MLeave { client: client_id }).await?;
self.clients.remove(&client_id);

Ok(())
}
Expand Down

0 comments on commit 82b8584

Please sign in to comment.