Update logic/peers.go

Co-authored-by: tenki-reviewer[bot] <262613592+tenki-reviewer[bot]@users.noreply.github.com>
This commit is contained in:
Abhishek Kondur
2026-04-04 20:20:48 +05:30
committed by GitHub
parent 4fa5e0f641
commit ca43397ffa
+1 -1
View File
@@ -845,7 +845,7 @@ func deduplicateEgressRoutes(routes []models.EgressNetworkRoutes) []models.Egres
seen := make(map[string]struct{}, len(routes))
result := make([]models.EgressNetworkRoutes, 0, len(routes))
for _, r := range routes {
key := r.PeerKey
key := r.PeerKey + "|" + r.Network
if _, exists := seen[key]; !exists {
seen[key] = struct{}{}
result = append(result, r)