chore: upgrade tonic and prost family to v0.14 (#301)

* chore: upgrade tonic and prost family to v0.14

* fix ci
This commit is contained in:
LFC
2026-01-14 17:34:01 +08:00
committed by GitHub
parent 58aeee4926
commit 1353b0ada9
7 changed files with 28 additions and 43 deletions
+1 -11
View File
@@ -18,7 +18,7 @@ mod mailbox;
use std::collections::HashMap;
use std::fmt::{Display, Formatter};
use std::hash::{Hash, Hasher};
use std::hash::Hash;
pub const PROTOCOL_VERSION: u64 = 1;
@@ -48,16 +48,6 @@ impl PeerDict {
}
}
#[allow(clippy::derived_hash_with_manual_eq)]
impl Hash for Peer {
fn hash<H: Hasher>(&self, state: &mut H) {
self.id.hash(state);
self.addr.hash(state);
}
}
impl Eq for Peer {}
impl Display for Peer {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
write!(f, "peer-{}({})", self.id, self.addr)