Allow multiple SystemConnects to be handled from a single node in the shard

This commit is contained in:
James Wilson
2021-06-21 16:27:42 +01:00
parent 06d131bf3f
commit 19ef458e5b
6 changed files with 122 additions and 57 deletions
+4
View File
@@ -69,4 +69,8 @@ impl <Details> AssignId<Details> where Details: Eq + Hash + Clone {
pub fn clear(&mut self) {
*self = AssignId::new()
}
pub fn iter(&self) -> impl Iterator<Item = (Id, &Details)> {
self.from_id.iter().map(|(id, details)| (*id, details))
}
}
+4
View File
@@ -26,6 +26,10 @@ pub enum FromShardAggregator {
local_id: LocalId,
payload: Payload,
},
/// Inform the core that a node has been removed
RemoveNode {
local_id: LocalId
}
}
/// Message sent form the backend core to the shard