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

Method sync_node

gateway/src/kv/mod.rs:534–538  ·  view source on GitHub ↗

Sync node data to other nodes

(&self, node_id: NodeId, data: &NodeData)

Source from the content-addressed store, hash-verified

532
533 /// Sync node data to other nodes
534 pub fn sync_node(&self, node_id: NodeId, data: &NodeData) -> Result<()> {
535 self.persistent
536 .write()
537 .put_encoded(keys::node_info(node_id), data)
538 }
539
540 /// Load all nodes from sync store
541 pub fn load_all_nodes(&self) -> BTreeMap<NodeId, NodeData> {

Callers 1

newMethod · 0.80

Calls 3

node_infoFunction · 0.85
put_encodedMethod · 0.80
writeMethod · 0.80

Tested by

no test coverage detected