Function
load_program
(storage: &ProgramStorage, hash: Hash)
Source from the content-addressed store, hash-verified
| 736 | } |
| 737 | |
| 738 | async 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 | |
| 745 | struct LaunchedModule { |
| 746 | replica_ctx: Arc<ReplicaContext>, |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…