Skip to content

Commit

Permalink
Update AdaptivePowerOfTwoChoice.java
Browse files Browse the repository at this point in the history
  • Loading branch information
LQLlulu authored Oct 8, 2022
1 parent aa08a03 commit 2c4fd60
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ protected <T> Invoker<T> doSelect(List<Invoker<T>> invokers, URL url, Invocation
double averageLatency = 0;
double totalLatency = 0;

while(!onResetSlideWindow.compareAndSet(false,true))
while(!onResetSlideWindow.compareAndSet(false,true)){}
for(int i = 0; i < length; i++){
RpcStatus rpcStatus = RpcStatus.getStatus(invokers.get(i).getUrl(),invocation.getMethodName());
SlideWindowData slideWindowData = methodMap.computeIfAbsent(rpcStatus,SlideWindowData::new);
Expand Down

0 comments on commit 2c4fd60

Please sign in to comment.