Skip to content

Commit

Permalink
fix: re-enqueue timers issue (#476)
Browse files Browse the repository at this point in the history
* fix re-enqueue timers issue

* fix once re-enqueue method
  • Loading branch information
ravi-sawlani-yral authored Dec 3, 2024
1 parent 1c5f328 commit 6a9ad40
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fn reenqueue_timers_for_these_posts(
.duration_since(*current_time)
.unwrap_or_default(),
move || {
tabulate_hot_or_not_outcome_for_post_slot(post_id, slot_id);
ic_cdk::spawn(tabulate_hot_or_not_outcome_for_post_slot(post_id, slot_id));
},
);
})
Expand Down Expand Up @@ -89,7 +89,10 @@ fn once_reenqueue_timers_for_these_posts(post_slot_ids: Vec<(u64, u8)>) {
// random jitter
Duration::from_secs(300),
move || {
tabulate_hot_or_not_outcome_for_post_slot(post_id, slot_number);
ic_cdk::spawn(tabulate_hot_or_not_outcome_for_post_slot(
post_id,
slot_number,
));
},
);
}
Expand Down

0 comments on commit 6a9ad40

Please sign in to comment.