Reformat.

This commit is contained in:
Olga Maciaszek-Sharma
2022-03-11 12:52:53 +01:00
parent 094514ec4b
commit 294badc4bf

View File

@@ -100,7 +100,8 @@ public class RoundRobinLoadBalancer implements ReactorServiceInstanceLoadBalance
return new EmptyResponse();
}
// Ignore the sign bit, this allows pos to loop sequentially from 0 to Integer.MAX_VALUE
// Ignore the sign bit, this allows pos to loop sequentially from 0 to
// Integer.MAX_VALUE
int pos = this.position.incrementAndGet() & Integer.MAX_VALUE;
ServiceInstance instance = instances.get(pos % instances.size());