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

Method try_init_host

crates/core/src/host/host_controller.rs:637–642  ·  view source on GitHub ↗
(&self, database: Database, replica_id: u64)

Source from the content-addressed store, hash-verified

635 }
636
637 async fn try_init_host(&self, database: Database, replica_id: u64) -> anyhow::Result<Host> {
638 let database_identity = database.database_identity;
639 Host::try_init(self, database, replica_id)
640 .await
641 .with_context(|| format!("failed to init replica {} for {}", replica_id, database_identity))
642 }
643}
644
645fn stored_program_hash(db: &RelationalDB) -> anyhow::Result<Option<Hash>> {

Callers 2

update_module_hostMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected