Replace KeepAlive with ping

This is more standard and allows measuring latency.
This commit is contained in:
Luke Parker
2025-01-08 23:01:09 -05:00
parent ce83b41712
commit 20326bba73
6 changed files with 38 additions and 22 deletions

View File

@@ -27,8 +27,6 @@ const PROTOCOL: &str = "/serai/coordinator/reqres/1.0.0";
/// Requests which can be made via the request-response protocol.
#[derive(Clone, Copy, Debug, BorshSerialize, BorshDeserialize)]
pub(crate) enum Request {
/// A keep-alive to prevent our connections from being dropped.
KeepAlive,
/// A heartbeat informing our peers of our latest block, for the specified blockchain, on regular
/// intervals.
///