MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / default_protocol

Method default_protocol

crates/cli/src/config.rs:271–275  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

269 }
270
271 fn default_protocol(&self) -> anyhow::Result<&str> {
272 self.default_server()
273 .with_context(|| "Cannot find protocol for default server")
274 .map(|cfg| cfg.protocol.as_ref())
275 }
276
277 fn set_default_server(&mut self, server: &str) -> anyhow::Result<()> {
278 // Check that such a server exists before setting the default.

Callers 1

protocolMethod · 0.80

Calls 3

default_serverMethod · 0.80
mapMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected