Skip to content

Commit

Permalink
Move second in as well
Browse files Browse the repository at this point in the history
  • Loading branch information
maplant committed May 7, 2024
1 parent 9f381ee commit 94ce2a2
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions mobile_verifier/src/boosting_oracles/data_sets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,15 +339,17 @@ where
_ = self.new_coverage_object_signal.recv() => {
// If we see a new coverage object, we want to assign only those hexes
// that don't have an assignment
let boosting_reports = set_oracle_boosting_assignments(
UnassignedHex::fetch_unassigned(&self.pool),
&self.data_sets,
&self.pool,
)
.await?;
self.oracle_boosting_sink
.write_all(boosting_reports)
if self.data_sets.is_ready() {
let boosting_reports = set_oracle_boosting_assignments(
UnassignedHex::fetch_unassigned(&self.pool),
&self.data_sets,
&self.pool,
)
.await?;
self.oracle_boosting_sink
.write_all(boosting_reports)
.await?;
}
},
_ = tokio::time::sleep(poll_duration.to_std()?) => {
self.check_for_new_data_sets().await?;
Expand Down

0 comments on commit 94ce2a2

Please sign in to comment.