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

Function lease

crates/openshell-server/src/compute/lease.rs:265–267  ·  view source on GitHub ↗
(store: Arc<Store>, id: &str, ttl: Duration)

Source from the content-addressed store, hash-verified

263 }
264
265 fn lease(store: Arc<Store>, id: &str, ttl: Duration) -> ReconcilerLease {
266 ReconcilerLease::new(store, id.to_string(), ttl)
267 }
268
269 #[tokio::test]
270 async fn acquire_succeeds_when_no_lease_exists() {

Calls

no outgoing calls

Tested by

no test coverage detected