Improve rpc logic (#6400)

* update rpc imports to be explicit

* avoid exposing HandlerEvent outside RPC

it's unnecessary.

* handle Pongs at RPC handler level
This commit is contained in:
João Oliveira
2024-09-17 07:12:21 +01:00
committed by GitHub
parent e0ccadbae2
commit 2f6ad34795
4 changed files with 64 additions and 51 deletions

View File

@@ -81,7 +81,7 @@ pub struct StatusMessage {
}
/// The PING request/response message.
#[derive(Encode, Decode, Clone, Debug, PartialEq)]
#[derive(Encode, Decode, Copy, Clone, Debug, PartialEq)]
pub struct Ping {
/// The metadata sequence number.
pub data: u64,