Skip to content

Commit

Permalink
add owner index to get_indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
simke9445 committed Jan 15, 2024
1 parent 36ed096 commit b9b4690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/warp-controller/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub struct JobIndexes<'a> {

impl IndexList<Job> for JobIndexes<'_> {
fn get_indexes(&'_ self) -> Box<dyn Iterator<Item = &'_ dyn Index<Job>> + '_> {
let v: Vec<&dyn Index<Job>> = vec![&self.reward, &self.publish_time];
let v: Vec<&dyn Index<Job>> = vec![&self.reward, &self.publish_time, &self.owner];
Box::new(v.into_iter())
}
}
Expand Down

0 comments on commit b9b4690

Please sign in to comment.