This commit is contained in:
Sebastian Klähn
2024-01-29 16:12:45 +01:00
parent eca8ed3d56
commit 4fb0002283
3 changed files with 9 additions and 12 deletions

View File

@@ -191,9 +191,11 @@ async fn subscribe_loop(
let event = stream.recv().await?;
match event {
IrohEvent::NeighborUp(node) => {
info!(context, "NeighborUp: {:?}", node);
context.add_peer_for_topic(msg_id, topic, node).await?;
}
IrohEvent::NeighborDown(node) => {
info!(context, "NeighborDown: {:?}", node);
context.delete_peer_for_topic(topic, node).await?;
}
IrohEvent::Received(event) => {