Skip to content

Commit

Permalink
Merge pull request #206 from brharrington/http-config
Browse files Browse the repository at this point in the history
use the injected config for cleanup frequency
  • Loading branch information
brharrington committed Dec 4, 2015
2 parents 3e6273e + f95721b commit 86456b8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions iep-rxhttp/src/main/java/com/netflix/iep/http/RxHttp.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 86456b8

Please sign in to comment.