Skip to content

Commit db24187

Browse files
committed
debug(loadbalance): newRoude start from 0
1 parent 518330b commit db24187

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pkg/loadbalance/iterator.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ package loadbalance
1818

1919
import (
2020
"sync/atomic"
21-
22-
"github.com/bytedance/gopkg/lang/fastrand"
2321
)
2422

2523
// round implement a strict Round Robin algorithm
@@ -34,8 +32,6 @@ func (r *round) Next() uint64 {
3432
}
3533

3634
func newRound() *round {
37-
r := &round{
38-
state: fastrand.Uint64(), // every thread have a rand start order
39-
}
35+
r := &round{}
4036
return r
4137
}

0 commit comments

Comments
 (0)