mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 04:39:24 +00:00
Send a heartbeat message when a Tributary falls behind
This commit is contained in:
@@ -103,6 +103,7 @@ pub async fn run_tributaries(
|
||||
p2p.broadcast(msg.kind, msg.msg).await;
|
||||
}
|
||||
}
|
||||
_ => panic!("unexpected p2p message found"),
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -170,6 +171,7 @@ async fn tributary_test() {
|
||||
assert_eq!(genesis, tributary.genesis());
|
||||
tributary.handle_message(&msg.msg).await;
|
||||
}
|
||||
_ => panic!("unexpected p2p message found"),
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -195,6 +197,7 @@ async fn tributary_test() {
|
||||
assert_eq!(genesis, tributary.genesis());
|
||||
tributary.handle_message(&msg.msg).await;
|
||||
}
|
||||
_ => panic!("unexpected p2p message found"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user