Connect for one journal request: start the transport when it is down (D4) — except for a remote sandbox, which has none of its own.
()
| 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. |
| 229 | async 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 — |
no test coverage detected