Skip to content

Commit

Permalink
Not sure how these got lost?
Browse files Browse the repository at this point in the history
  • Loading branch information
acw committed Jul 29, 2024
1 parent 34f5007 commit 06114ee
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion cli/tests/integration/vcpu_time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,3 @@ viceroy_test!(vcpu_time_getter_works, |is_component| {
assert_eq!(resp.status(), StatusCode::OK);
Ok(())
});

1 change: 1 addition & 0 deletions cli/tests/trap-test/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions crates/adapter/src/fastly/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,12 +275,13 @@ pub mod fastly_vcpu {
pub fn get_vcpu_ms(vcpu_time_ms_out: *mut u64) -> FastlyStatus {
match crate::bindings::fastly::api::vcpu::get_vcpu_ms() {
Ok(time) => {
unsafe { *vcpu_time_ms_out = time; };
unsafe {
*vcpu_time_ms_out = time;
};
FastlyStatus::OK
}

Err(e) =>
e.into(),
Err(e) => e.into(),
}
}
}
Expand Down

0 comments on commit 06114ee

Please sign in to comment.