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 abf0eeb
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions 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,9 +487,10 @@ impl super::VM for CoreVM {
)
}

#[instrument(level = "debug", ret)]
fn sys_try_complete_combinator(
&mut self,
combinator: impl AsyncResultCombinator,
combinator: impl AsyncResultCombinator + fmt::Debug,

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

View workflow job for this annotation

GitHub Actions / Build and test (ubuntu-22.04)

impl has stricter requirements than trait

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

View workflow job for this annotation

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

impl has stricter requirements than trait

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

View workflow job for this annotation

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

impl has stricter requirements than trait
) -> VMResult<Option<AsyncResultHandle>> {
self.do_transition(SysTryCompleteCombinator(combinator))
}
Expand Down

0 comments on commit abf0eeb

Please sign in to comment.