Skip to content

Commit

Permalink
Fix stupid mistake (#4514)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Oct 6, 2023
1 parent 290cb09 commit 2b4ad22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ thread_local! {
}

pub(crate) fn start_job_if_required(state: &RuntimeState) -> bool {
if TIMER_ID.with(|t| t.get().is_none()) && !state.data.nervous_systems.any_proposals_to_push() {
if TIMER_ID.with(|t| t.get().is_none()) && state.data.nervous_systems.any_proposals_to_push() {
let timer_id = ic_cdk_timers::set_timer_interval(Duration::ZERO, run);
TIMER_ID.with(|t| t.set(Some(timer_id)));
trace!("'push_proposals' job started");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ thread_local! {
}

pub(crate) fn start_job_if_required(state: &RuntimeState) -> bool {
if TIMER_ID.with(|t| t.get().is_none()) && !state.data.nervous_systems.any_proposals_to_update() {
if TIMER_ID.with(|t| t.get().is_none()) && state.data.nervous_systems.any_proposals_to_update() {
let timer_id = ic_cdk_timers::set_timer_interval(Duration::ZERO, run);
TIMER_ID.with(|t| t.set(Some(timer_id)));
trace!("'update_proposals' job started");
Expand Down

0 comments on commit 2b4ad22

Please sign in to comment.