Clean up shard channel when shard disconnects (#411)

This commit is contained in:
James Wilson
2021-09-24 10:48:54 +01:00
committed by GitHub
parent 83aca45509
commit ed6e292d25
@@ -439,6 +439,8 @@ impl InnerLoop {
}
}
FromShardWebsocket::Disconnected => {
self.shard_channels.remove(&shard_conn_id);
// Find all nodes associated with this shard connection ID:
let node_ids_to_remove: Vec<NodeId> = self
.node_ids