chore: reduce size of common types (#5304)

This commit is contained in:
DaniPopes
2023-11-06 13:45:20 +01:00
committed by GitHub
parent 2d315c2f3a
commit f8ceda9ea8
55 changed files with 580 additions and 532 deletions

View File

@ -120,7 +120,7 @@ pub struct PeerInfo {
/// The identifier of the remote peer
pub remote_id: PeerId,
/// The client's name and version
pub client_version: Arc<String>,
pub client_version: Arc<str>,
/// The peer's address we're connected to
pub remote_addr: SocketAddr,
/// The local address of the connection
@ -130,7 +130,7 @@ pub struct PeerInfo {
/// The negotiated eth version.
pub eth_version: EthVersion,
/// The Status message the peer sent for the `eth` handshake
pub status: Status,
pub status: Arc<Status>,
}
/// The direction of the connection.