Skip to content
This repository has been archived by the owner on Oct 31, 2022. It is now read-only.

Commit

Permalink
Merge pull request #41 from hderms/use_java_timer_instead_of_default
Browse files Browse the repository at this point in the history
use JavaTimer instead of DefaultTimer
  • Loading branch information
samstarling authored May 15, 2019
2 parents 4d11161 + cd56ec7 commit aba11fb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ class PrometheusStatsReceiver(registry: CollectorRegistry,
def this() =
this(CollectorRegistry.defaultRegistry,
"finagle",
DefaultTimer,
new JavaTimer(true),
Duration.fromSeconds(10))

def this(registry: CollectorRegistry) =
this(registry,
"finagle",
DefaultTimer,
new JavaTimer(true),
Duration.fromSeconds(10))

protected val counters = TrieMap.empty[String, PCounter]
Expand Down

0 comments on commit aba11fb

Please sign in to comment.