Clean up shard channel when shard disconnects (#411)

This commit is contained in:
James Wilson authored and GitHub committed 2021-09-24 10:48:54 +01:00
1 parent 83aca45509
commit ed6e292d25
1 file changed
+2
@@ -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