Skip to content

Commit b6006ad

Browse files
committed
Fixed handler to return bool.
Signed-off-by: Suneet Nangia <[email protected]>
1 parent ea92317 commit b6006ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/spin-timer/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ impl TriggerExecutor for TimerTrigger {
129129
}
130130

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

0 commit comments

Comments
 (0)