Skip to content

Commit

Permalink
Default threshold of 500 micros
Browse files Browse the repository at this point in the history
  • Loading branch information
elandau committed Jun 14, 2018
1 parent bbef52a commit 8e3e42f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public final class DefaultLimiter<ContextT> implements Limiter<ContextT> {

private static final long DEFAULT_MIN_WINDOW_TIME = TimeUnit.SECONDS.toNanos(1);
private static final long DEFAULT_MAX_WINDOW_TIME = TimeUnit.SECONDS.toNanos(1);
private static final long DEFAULT_MIN_RTT_THRESHOLD = TimeUnit.MICROSECONDS.toNanos(100);
private static final long DEFAULT_MIN_RTT_THRESHOLD = TimeUnit.MICROSECONDS.toNanos(500);

/**
* Minimum observed samples to filter out sample windows with not enough significant samples
Expand Down Expand Up @@ -143,7 +143,7 @@ private DefaultLimiter(Builder builder, Strategy<ContextT> strategy) {
this.limit = builder.limit;
this.minWindowTime = builder.minWindowTime;
this.maxWindowTime = builder.maxWindowTime;
this.minRttThreshold = DEFAULT_MIN_RTT_THRESHOLD;
this.minRttThreshold = builder.minRttThreshold;
this.windowSize = builder.windowSize;
this.strategy = strategy;
strategy.setLimit(limit.getLimit());
Expand Down

0 comments on commit 8e3e42f

Please sign in to comment.