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

Method new

gateway/src/kv/sync_service.rs:40–55  ·  view source on GitHub ↗
(
        kv_store: KvStore,
        store_path: &'static str,
        tls_config: &HttpsClientConfig,
    )

Source from the content-addressed store, hash-verified

38
39impl HttpSyncNetwork {
40 pub fn new(
41 kv_store: KvStore,
42 store_path: &'static str,
43 tls_config: &HttpsClientConfig,
44 ) -> Result<Self> {
45 let client = HttpsClient::new(tls_config)?;
46 let my_uuid = kv_store
47 .get_peer_uuid(kv_store.my_node_id)
48 .context("failed to get my UUID")?;
49 Ok(Self {
50 client,
51 kv_store,
52 my_uuid,
53 store_path,
54 })
55 }
56
57 /// Get peer URL from persistent node
58 fn get_peer_url(&self, peer_id: NodeId) -> Option<String> {

Callers

nothing calls this directly

Calls 4

get_peer_uuidMethod · 0.80
cloneMethod · 0.80
persistentMethod · 0.80
ephemeralMethod · 0.80

Tested by

no test coverage detected