Skip to content

Commit

Permalink
Fixed handler to return bool.
Browse files Browse the repository at this point in the history
Signed-off-by: Suneet Nangia <[email protected]>
  • Loading branch information
suneetnangia committed Apr 14, 2023
1 parent ea92317 commit b6006ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/spin-timer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ impl TriggerExecutor for TimerTrigger {
}

impl TimerTrigger {
async fn handle_timer_event(&self, component_id: &str) -> anyhow::Result<()> {
async fn handle_timer_event(&self, component_id: &str) -> anyhow::Result<bool> {
// Load the guest...
let (instance, mut store) = self.engine.prepare_instance(component_id).await?;
let EitherInstance::Component(instance) = instance else {
Expand Down

0 comments on commit b6006ad

Please sign in to comment.