Sync handshake timestamp for an instance (as observed by this node)
(&self, instance_id: &str, timestamp: u64)
| 593 | |
| 594 | /// Sync handshake timestamp for an instance (as observed by this node) |
| 595 | pub fn sync_instance_handshake(&self, instance_id: &str, timestamp: u64) -> Result<()> { |
| 596 | self.ephemeral |
| 597 | .write() |
| 598 | .put_encoded(keys::handshake(instance_id, self.my_node_id), ×tamp)?; |
| 599 | Ok(()) |
| 600 | } |
| 601 | |
| 602 | /// Get all handshake observations for an instance (from all nodes) |
| 603 | pub fn get_instance_handshakes(&self, instance_id: &str) -> BTreeMap<NodeId, u64> { |
no test coverage detected