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

Method new

gateway/src/main_service.rs:115–123  ·  view source on GitHub ↗
(options: ProxyOptions)

Source from the content-addressed store, hash-verified

113
114impl Proxy {
115 pub async fn new(options: ProxyOptions) -> Result<Self> {
116 let (port_policy_tx, port_policy_rx) = unbounded_channel();
117 let inner = ProxyInner::new(options, port_policy_tx).await?;
118 let proxy = Self {
119 _inner: Arc::new(inner),
120 };
121 crate::proxy::port_policy::spawn_fetcher(proxy.clone(), port_policy_rx);
122 Ok(proxy)
123 }
124}
125
126impl ProxyInner {

Callers

nothing calls this directly

Calls 15

spawn_fetcherFunction · 0.85
cloneMethod · 0.80
load_all_instancesMethod · 0.80
load_all_nodesMethod · 0.80
sync_nodeMethod · 0.80
register_peer_urlMethod · 0.80
load_all_cert_dataMethod · 0.80
add_certMethod · 0.80
setMethod · 0.80

Tested by

no test coverage detected