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

Method get_peer_uuid

gateway/src/kv/mod.rs:700–703  ·  view source on GitHub ↗

Query the UUID for a given node ID from KvStore

(&self, peer_id: NodeId)

Source from the content-addressed store, hash-verified

698
699 /// Query the UUID for a given node ID from KvStore
700 pub fn get_peer_uuid(&self, peer_id: NodeId) -> Option<Vec<u8>> {
701 let node_data: NodeData = self.persistent.read().decode(&keys::node_info(peer_id))?;
702 Some(node_data.uuid)
703 }
704
705 pub fn update_peer_last_seen(&self, peer_id: NodeId) {
706 let ts = std::time::SystemTime::now()

Callers 2

newMethod · 0.80
query_uuidMethod · 0.80

Calls 2

node_infoFunction · 0.85
decodeMethod · 0.45

Tested by

no test coverage detected