Skip to content

Commit 766a1cd

Browse files
committed
wip: Update the broker to handle the NewPeers event
1 parent 100fa6e commit 766a1cd

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/domobroker.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ impl DomoBroker {
274274

275275
DomoEvent::VolatileData(m2)
276276
}
277+
DomoEvent::NewPeers(_) => DomoEvent::None,
277278
}
278279
}
279280
}

src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ fn report_event(m: &DomoEvent) {
6565
DomoEvent::PersistentData(_v) => {
6666
println!("Persistent");
6767
}
68+
DomoEvent::NewPeers(peers) => {
69+
println!("New peers {:#?}", peers);
70+
}
6871
}
6972
}
7073

0 commit comments

Comments
 (0)