Skip to content

Commit

Permalink
chore: fix lint warnings (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
scarmuega authored Oct 25, 2024
1 parent ced8e58 commit ca4b838
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/sync/pull.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,12 @@ impl gasket::framework::Worker<Stage> for Worker {
if client.has_agency() {
debug!("should request next batch of blocks");
Ok(WorkSchedule::Unit(WorkUnit::Pull))
} else if self.quit_on_tip {
debug!("reached tip, exiting");
Ok(WorkSchedule::Done)
} else {
if self.quit_on_tip {
debug!("reached tip, exiting");
Ok(WorkSchedule::Done)
} else {
debug!("should await next block");
Ok(WorkSchedule::Unit(WorkUnit::Await))
}
debug!("should await next block");
Ok(WorkSchedule::Unit(WorkUnit::Await))
}
}

Expand Down

0 comments on commit ca4b838

Please sign in to comment.