Skip to content

Commit

Permalink
Remove last config switch still present in MetricsServiceImpl
Browse files Browse the repository at this point in the history
  • Loading branch information
tsegismont committed Jun 9, 2015
1 parent ba1c3f5 commit 44002ca
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import java.util.function.Predicate;

import org.hawkular.metrics.core.api.Availability;
Expand Down Expand Up @@ -73,7 +72,6 @@
import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.ListeningExecutorService;
import com.google.common.util.concurrent.MoreExecutors;
import com.google.common.util.concurrent.RateLimiter;

import rx.Observable;
import rx.functions.Func1;
Expand All @@ -85,8 +83,6 @@
public class MetricsServiceImpl implements MetricsService {
private static final Logger logger = LoggerFactory.getLogger(MetricsServiceImpl.class);

public static final String REQUEST_LIMIT = "hawkular.metrics.request.limit";

/**
* In seconds.
*/
Expand Down Expand Up @@ -137,8 +133,6 @@ public int hashCode() {
}
}

private final RateLimiter permits = RateLimiter.create(Double.parseDouble(
System.getProperty(REQUEST_LIMIT, "30000")), 3, TimeUnit.MINUTES);
/**
* Note that while user specifies the durations in hours, we store them in seconds.
*/
Expand Down

0 comments on commit 44002ca

Please sign in to comment.