Skip to content

Commit

Permalink
wip: Update the broker to handle the NewPeers event
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-zero committed Aug 9, 2023
1 parent 100fa6e commit 766a1cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/domobroker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ impl DomoBroker {

DomoEvent::VolatileData(m2)
}
DomoEvent::NewPeers(_) => DomoEvent::None,

Check warning on line 277 in src/domobroker.rs

View check run for this annotation

Codecov / codecov/patch

src/domobroker.rs#L277

Added line #L277 was not covered by tests
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ fn report_event(m: &DomoEvent) {
DomoEvent::PersistentData(_v) => {
println!("Persistent");
}
DomoEvent::NewPeers(peers) => {
println!("New peers {:#?}", peers);
}

Check warning on line 70 in src/main.rs

View check run for this annotation

Codecov / codecov/patch

src/main.rs#L68-L70

Added lines #L68 - L70 were not covered by tests
}
}

Expand Down

0 comments on commit 766a1cd

Please sign in to comment.