Skip to content

Commit

Permalink
fix prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ezrizhu committed Nov 14, 2024
1 parent 4f0fe0c commit d2b9941
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lg.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ func (p *Prefix) checkLGState() {
origin := strconv.Itoa(p.origin)

for _, rrc := range ripeStatLookingGlassResp.Data.Rrcs {
communities := []string{}
//communities := []string{}
for _, peer := range rrc.Peers {
communities = append(communities, peer.Community)
//communities = append(communities, peer.Community)
//communities = slices.Compact(communities)
for _, e := range communities {
for _, e := range peer.Community {
bgpCommunitiesGauge.WithLabelValues(
p.prefix,
rrc.Location,
Expand Down

0 comments on commit d2b9941

Please sign in to comment.