Skip to content
This repository has been archived by the owner on Feb 19, 2021. It is now read-only.

Commit

Permalink
Fix cluster id calculation in multi
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmxs committed Jun 17, 2020
1 parent 2e70bea commit 0b9cb67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion topologies/multi.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (t *MultiTopology) IsRouteReflector(nodeID string, labels map[string]string

func (t *MultiTopology) GetClusterID(nodeID string, seed int) string {
count := strings.Count(t.ClusterID, "%d")
parts := make([]interface{}, count)
parts := make([]interface{}, 0)

rand1 := rand.New(rand.NewSource(int64(getRouteReflectorID(nodeID))))
parts = append(parts, rand1.Int31n(254))
Expand Down

0 comments on commit 0b9cb67

Please sign in to comment.