MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / ping

Method ping

crates/openshell-server/src/persistence/sqlite.rs:70–73  ·  view source on GitHub ↗

Verify the database is reachable by acquiring a pooled connection and issuing a ping.

(&self)

Source from the content-addressed store, hash-verified

68 /// Verify the database is reachable by acquiring a pooled connection
69 /// and issuing a ping.
70 pub async fn ping(&self) -> PersistenceResult<()> {
71 let mut conn = self.pool.acquire().await.map_err(|e| map_db_error(&e))?;
72 conn.ping().await.map_err(|e| map_db_error(&e))
73 }
74
75 /// Test support only: close the underlying connection pool.
76 ///

Callers

nothing calls this directly

Calls 1

map_db_errorFunction · 0.85

Tested by

no test coverage detected