Permalink
Browse files

Merge pull request #651 from jsbret/master

issue-650 DynamicLoadBalancingPolicy: LatencyAwareHClientPool may throw ...
  • Loading branch information...
2 parents d48e723 + 07f271c commit b7a704132a647d2dc2fb9273958c8a645ac6fdf5 @zznate zznate committed Jan 16, 2014
@@ -45,7 +45,7 @@ void add(double i) {
if (intervalupdates.intValue() >= UPDATES_PER_INTERVAL)
return;
if (!latencies.offer(i)) {
- latencies.remove();
+ latencies.poll();
latencies.offer(i);
}
intervalupdates.getAndIncrement();

0 comments on commit b7a7041

Please sign in to comment.