Refactor route management to include resource IDs in state handling

This commit is contained in:
Hakan Sariman
2025-03-06 13:51:46 +03:00
parent e7f921d787
commit 0b42f40cf6
5 changed files with 34 additions and 18 deletions

View File

@@ -829,7 +829,7 @@ func toProtoFullStatus(fullStatus peer.FullStatus) *proto.FullStatus {
BytesRx: peerState.BytesRx,
BytesTx: peerState.BytesTx,
RosenpassEnabled: peerState.RosenpassEnabled,
Networks: maps.Keys(peerState.GetRoutes()),
Networks: peerState.GetRoutesSlice(),
Latency: durationpb.New(peerState.Latency),
}
pbFullStatus.Peers = append(pbFullStatus.Peers, pbPeerState)