mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-12-02 08:02:23 +03:00
initial caps fix in make_process_loop
This commit is contained in:
parent
a949bd13a8
commit
52582c4f52
@ -524,8 +524,15 @@ pub async fn make_process_loop(
|
||||
responder: tx,
|
||||
})
|
||||
.await;
|
||||
// TOD fix this...
|
||||
// let initial_capabilities = rx.await.unwrap().into_iter().collect();
|
||||
let initial_capabilities = rx
|
||||
.await
|
||||
.unwrap()
|
||||
.iter()
|
||||
.map(|c| t::Capability {
|
||||
issuer: c.issuer.clone(),
|
||||
params: c.params.clone(),
|
||||
})
|
||||
.collect();
|
||||
|
||||
// send message to tell main kernel loop to remove handler
|
||||
send_to_loop
|
||||
@ -569,7 +576,7 @@ pub async fn make_process_loop(
|
||||
wasm_bytes_handle: metadata.wasm_bytes_handle,
|
||||
wit_version: Some(metadata.wit_version),
|
||||
on_exit: metadata.on_exit,
|
||||
initial_capabilities: HashSet::new(), // TODO initial_capabilities,
|
||||
initial_capabilities,
|
||||
public: metadata.public,
|
||||
})
|
||||
.unwrap(),
|
||||
|
Loading…
Reference in New Issue
Block a user