Skip to content

Commit

Permalink
Missing a bunch of instrument macro calls
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper committed Sep 23, 2024
1 parent 8aba0b8 commit 081ca4c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/vm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ impl super::VM for CoreVM {
))
}

#[instrument(level = "debug", ret)]
fn sys_sleep(&mut self, duration: Duration) -> VMResult<AsyncResultHandle> {
self.do_transition(SysCompletableEntry(
"SysSleep",
Expand All @@ -326,6 +327,7 @@ impl super::VM for CoreVM {
))
}

#[instrument(level = "debug", ret)]
fn sys_call(&mut self, target: Target, input: Bytes) -> VMResult<AsyncResultHandle> {
self.do_transition(SysCompletableEntry(
"SysCall",
Expand All @@ -339,6 +341,7 @@ impl super::VM for CoreVM {
))
}

#[instrument(level = "debug", ret)]
fn sys_send(&mut self, target: Target, input: Bytes, delay: Option<Duration>) -> VMResult<()> {
self.do_transition(SysNonCompletableEntry(
"SysOneWayCall",
Expand All @@ -358,6 +361,7 @@ impl super::VM for CoreVM {
))
}

#[instrument(level = "debug", ret)]
fn sys_awakeable(&mut self) -> VMResult<(String, AsyncResultHandle)> {
self.do_transition(SysCompletableEntry(
"SysAwakeable",
Expand All @@ -374,6 +378,7 @@ impl super::VM for CoreVM {
})
}

#[instrument(level = "debug", ret)]
fn sys_complete_awakeable(&mut self, id: String, value: NonEmptyValue) -> VMResult<()> {
self.do_transition(SysNonCompletableEntry(
"SysCompleteAwakeable",
Expand All @@ -390,6 +395,7 @@ impl super::VM for CoreVM {
))
}

#[instrument(level = "debug", ret)]
fn sys_get_promise(&mut self, key: String) -> VMResult<AsyncResultHandle> {
self.do_transition(SysCompletableEntry(
"SysGetPromise",
Expand All @@ -400,6 +406,7 @@ impl super::VM for CoreVM {
))
}

#[instrument(level = "debug", ret)]
fn sys_peek_promise(&mut self, key: String) -> VMResult<AsyncResultHandle> {
self.do_transition(SysCompletableEntry(
"SysPeekPromise",
Expand All @@ -410,6 +417,7 @@ impl super::VM for CoreVM {
))
}

#[instrument(level = "debug", ret)]
fn sys_complete_promise(
&mut self,
key: String,
Expand Down Expand Up @@ -460,7 +468,6 @@ impl super::VM for CoreVM {
))
}

#[instrument(level = "debug", ret)]
fn sys_end(&mut self) -> Result<(), VMError> {
self.do_transition(SysEnd)
}
Expand All @@ -469,6 +476,7 @@ impl super::VM for CoreVM {
matches!(&self.last_transition, Ok(State::Processing { .. }))
}

#[instrument(level = "debug", ret)]
fn is_inside_run(&self) -> bool {
matches!(
&self.last_transition,
Expand All @@ -479,6 +487,7 @@ impl super::VM for CoreVM {
)
}

#[instrument(level = "debug", ret)]

Check failure on line 490 in src/vm/mod.rs

View workflow job for this annotation

GitHub Actions / Build and test (ubuntu-22.04)

`impl AsyncResultCombinator` doesn't implement `std::fmt::Debug`

Check failure on line 490 in src/vm/mod.rs

View workflow job for this annotation

GitHub Actions / Build and test (ubuntu-22.04)

`impl AsyncResultCombinator` doesn't implement `std::fmt::Debug`

Check failure on line 490 in src/vm/mod.rs

View workflow job for this annotation

GitHub Actions / Build only (ubuntu-22.04 / x86_64-unknown-linux-musl)

`impl AsyncResultCombinator` doesn't implement `Debug`

Check failure on line 490 in src/vm/mod.rs

View workflow job for this annotation

GitHub Actions / Build only (ubuntu-22.04 / x86_64-unknown-linux-musl)

`impl AsyncResultCombinator` doesn't implement `Debug`

Check failure on line 490 in src/vm/mod.rs

View workflow job for this annotation

GitHub Actions / Build only (ubuntu-22.04 / wasm32-unknown-unknown)

`impl AsyncResultCombinator` doesn't implement `Debug`

Check failure on line 490 in src/vm/mod.rs

View workflow job for this annotation

GitHub Actions / Build only (ubuntu-22.04 / wasm32-unknown-unknown)

`impl AsyncResultCombinator` doesn't implement `Debug`
fn sys_try_complete_combinator(
&mut self,
combinator: impl AsyncResultCombinator,
Expand Down

0 comments on commit 081ca4c

Please sign in to comment.