Skip to content

Commit f8fbac8

Browse files
committed
balancer: fix clients not being removed from balancer context on disconnect
possibly related to #1207?
1 parent 60f5165 commit f8fbac8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/ott-balancer/src/balancer.rs

+1
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ impl BalancerContext {
212212
let monolith = self.find_monolith_mut(client_id)?;
213213
monolith.remove_client(client_id);
214214
monolith.send(B2MLeave { client: client_id }).await?;
215+
self.clients.remove(&client_id);
215216

216217
Ok(())
217218
}

0 commit comments

Comments
 (0)