routing table refactor

This commit is contained in:
John Smith
2022-10-18 21:53:45 -04:00
parent 63768580c6
commit 6d5df71ac1
17 changed files with 1904 additions and 1586 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ pub struct RouteHopData {
#[derive(Clone, Debug)]
pub enum RouteNode {
NodeId(DHTKey),
NodeId(NodeId),
PeerInfo(PeerInfo),
}
impl fmt::Display for RouteNode {
@@ -20,7 +20,7 @@ impl fmt::Display for RouteNode {
f,
"{}",
match self {
RouteNode::NodeId(x) => x.encode(),
RouteNode::NodeId(x) => x.key.encode(),
RouteNode::PeerInfo(pi) => pi.node_id.key.encode(),
}
)