MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / sync_instance_handshake

Method sync_instance_handshake

gateway/src/kv/mod.rs:595–600  ·  view source on GitHub ↗

Sync handshake timestamp for an instance (as observed by this node)

(&self, instance_id: &str, timestamp: u64)

Source from the content-addressed store, hash-verified

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), &timestamp)?;
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> {

Callers 1

refresh_stateMethod · 0.80

Calls 3

handshakeFunction · 0.85
put_encodedMethod · 0.80
writeMethod · 0.80

Tested by

no test coverage detected