Skip to content

Commit 8da6c5f

Browse files
authored
Add remove_shared_data to Context trait. (#307)
Signed-off-by: Piotr Sikora <[email protected]>
1 parent 3b6f86f commit 8da6c5f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/traits.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ pub trait Context {
4242
hostcalls::set_shared_data(key, value, cas)
4343
}
4444

45+
fn remove_shared_data(&self, key: &str, cas: Option<u32>) -> Result<(), Status> {
46+
hostcalls::set_shared_data(key, None, cas)
47+
}
48+
4549
fn register_shared_queue(&self, name: &str) -> u32 {
4650
hostcalls::register_shared_queue(name).unwrap()
4751
}

0 commit comments

Comments
 (0)