Skip to content

Commit

Permalink
#655 give a random index for NewSubscriptionLoadBalancer
Browse files Browse the repository at this point in the history
  • Loading branch information
kingkh1995 committed Dec 26, 2023
1 parent daa9594 commit ba8da97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion golang/loadBalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ var _ = SubscriptionLoadBalancer(&subscriptionLoadBalancer{})
var NewSubscriptionLoadBalancer = func(messageQueues []*v2.MessageQueue) (SubscriptionLoadBalancer, error) {
slb := &subscriptionLoadBalancer{
messageQueues: messageQueues,
index: rand.Int31()
index: rand.Int31(),
}
return slb, nil
}
Expand Down

0 comments on commit ba8da97

Please sign in to comment.