MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / connect_for_journal

Function connect_for_journal

atomic-cli/src/commands/agent/provenance_rpc.rs:229–235  ·  view source on GitHub ↗

Connect for one journal request: start the transport when it is down (D4) — except for a remote sandbox, which has none of its own.

()

Source from the content-addressed store, hash-verified

227/// Connect for one journal request: start the transport when it is down
228/// (D4) — except for a remote sandbox, which has none of its own.
229async fn connect_for_journal() -> Result<AtomicClient, String> {
230 if SANDBOX_TOKEN.get().is_some() {
231 AtomicClient::connect_existing().await
232 } else {
233 AtomicClient::connect_or_start().await
234 }
235}
236
237/// The legacy `request_with_reconnect`, ported: up to three attempts,
238/// reconnecting through `connect_or_start` between transport failures —

Callers 1

request_with_reconnectFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected