Skip to content

Commit be21c23

Browse files
changed annotations
1 parent f749e52 commit be21c23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

xds/src/main/java/io/grpc/xds/WeightedRoundRobinLoadBalancer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ public boolean isEquivalentTo(RoundRobinPicker picker) {
330330

331331
/*
332332
* The Static Stride Scheduler is an implementation of an earliest deadline first (EDF) scheduler
333-
* in which each object is chosen periodically with frequency proportional to its weight.
333+
* in which each object's deadline is the multiplicative inverse of the object's weight.
334334
* <p>
335335
* The way in which this is implemented is through a static stride scheduler.
336336
* The Static Stride Scheduler works by iterating through the list of subchannel weights
@@ -397,6 +397,7 @@ private long nextSequence() {
397397
return Integer.toUnsignedLong(sequence.getAndIncrement());
398398
}
399399

400+
@VisibleForTesting
400401
long getSequence() {
401402
return Integer.toUnsignedLong(sequence.get());
402403
}

0 commit comments

Comments
 (0)