diff --git a/pkg/node/peer.go b/pkg/node/peer.go index 7b79055..cba08f2 100644 --- a/pkg/node/peer.go +++ b/pkg/node/peer.go @@ -107,13 +107,13 @@ type PeerRegistry struct { saveStopOnce sync.Once // Ensure stopChan is closed only once } -// Dimension weights for peer selection -// Lower ping, hops, geographic distance are better; higher score is better -var ( - pingWeight = 1.0 - hopsWeight = 0.7 - geographicWeight = 0.2 - scoreWeight = 1.2 +// Dimension weights for peer selection. +// Lower ping, hops, geographic distance are better; higher score is better. +const ( + pingWeight = 1.0 + hopsWeight = 0.7 + geographicWeight = 0.2 + scoreWeight = 1.2 ) // NewPeerRegistry creates a new PeerRegistry, loading existing peers if available.