more comments
This commit is contained in:
@ -41,8 +41,8 @@ func RoundRobin() Balancer {
|
|||||||
type roundRobin struct {
|
type roundRobin struct {
|
||||||
mu sync.Mutex
|
mu sync.Mutex
|
||||||
addrs []Address
|
addrs []Address
|
||||||
next int // index of the next address to return for Get()
|
next int // index of the next address to return for Get()
|
||||||
waitCh chan struct{}
|
waitCh chan struct{} // channel to block when there is no address available
|
||||||
}
|
}
|
||||||
|
|
||||||
// Up appends addr to the end of rr.addrs and sends notification if there
|
// Up appends addr to the end of rr.addrs and sends notification if there
|
||||||
|
Reference in New Issue
Block a user