Skip to content

Commit 84f59a7

Browse files
committed
address comments
1 parent e8c6f7e commit 84f59a7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

internal/wrr/wrr.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ package wrr
2121

2222
// WRR defines an interface that implements weighted round robin.
2323
type WRR interface {
24-
// Add adds an item with weight to the WRR set. All Add must be only called
25-
// before any calls to Next().
24+
// Add adds an item with weight to the WRR set. Add must be only called
25+
// before any calls to Next.
2626
Add(item any, weight int64)
2727
// Next returns the next picked item.
2828
//
29-
// Next needs to be thread safe.
29+
// Next needs to be thread safe. Add may not be called after any call to
30+
// Next.
3031
Next() any
3132
}

0 commit comments

Comments
 (0)