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

Function load_program

crates/core/src/host/host_controller.rs:738–743  ·  view source on GitHub ↗
(storage: &ProgramStorage, hash: Hash)

Source from the content-addressed store, hash-verified

736}
737
738async fn load_program(storage: &ProgramStorage, hash: Hash) -> anyhow::Result<Box<[u8]>> {
739 storage
740 .lookup(hash)
741 .await?
742 .with_context(|| format!("program {hash} not found"))
743}
744
745struct LaunchedModule {
746 replica_ctx: Arc<ReplicaContext>,

Callers 1

try_initMethod · 0.85

Calls 1

lookupMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…