From f95721b5e9a702db01f6e6b34ecc4dd97b2f421f Mon Sep 17 00:00:00 2001 From: Brian Harrington Date: Fri, 4 Dec 2015 07:50:09 -0800 Subject: [PATCH] use the injected config for cleanup frequency --- iep-rxhttp/src/main/java/com/netflix/iep/http/RxHttp.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/iep-rxhttp/src/main/java/com/netflix/iep/http/RxHttp.java b/iep-rxhttp/src/main/java/com/netflix/iep/http/RxHttp.java index 96002553..ad52d4f4 100644 --- a/iep-rxhttp/src/main/java/com/netflix/iep/http/RxHttp.java +++ b/iep-rxhttp/src/main/java/com/netflix/iep/http/RxHttp.java @@ -16,7 +16,6 @@ package com.netflix.iep.http; import com.netflix.config.ConfigurationManager; -import com.netflix.spectator.api.Spectator; import com.netflix.spectator.impl.Preconditions; import com.netflix.spectator.sandbox.HttpLogEntry; import io.reactivex.netty.client.CompositePoolLimitDeterminationStrategy; @@ -144,7 +143,7 @@ public void start() { } }; - final long cleanupFreq = Spectator.config().getLong("spectator.http.cleanupFrequency", 60); + final long cleanupFreq = config.getLong("netflix.iep.http.cleanupFrequency", 60); executor.scheduleWithFixedDelay(task, 0L, cleanupFreq, TimeUnit.SECONDS); }