Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jizhuozhi committed Oct 10, 2024
1 parent 5d7538a commit 9bfce1e
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions plugins/wasm-rust/src/hostcalls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ pub fn get_shared_data(key: &str) -> (Option<Bytes>, Option<u32>) {
hostcalls::get_shared_data(key).unwrap()
}

pub fn set_shared_data(
key: &str,
value: Option<&[u8]>,
cas: Option<u32>,
) -> Result<(), Status> {
pub fn set_shared_data(key: &str, value: Option<&[u8]>, cas: Option<u32>) -> Result<(), Status> {
hostcalls::set_shared_data(key, value, cas)
}

Expand Down Expand Up @@ -374,14 +370,10 @@ pub fn reset_http_response() {
hostcalls::reset_http_response().unwrap()
}

pub fn send_http_response(
status_code: u32,
headers: Vec<(&str, &str)>,
body: Option<&[u8]>,
) {
pub fn send_http_response(status_code: u32, headers: Vec<(&str, &str)>, body: Option<&[u8]>) {
hostcalls::send_http_response(status_code, headers, body).unwrap()
}

pub fn log(level: LogLevel, message: &str) {
hostcalls::log(level, message).unwrap()
}
}

0 comments on commit 9bfce1e

Please sign in to comment.