From 3fd3f9c835749447d503e5ee2f0e6b616d27a55b Mon Sep 17 00:00:00 2001 From: Allen Wang Date: Tue, 12 Nov 2013 11:52:12 -0800 Subject: [PATCH] Make sure NamedConnectionPool instances register with Servo with unique names. --- .../src/main/java/com/netflix/http4/NamedConnectionPool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ribbon-httpclient/src/main/java/com/netflix/http4/NamedConnectionPool.java b/ribbon-httpclient/src/main/java/com/netflix/http4/NamedConnectionPool.java index f46ff115..65452165 100644 --- a/ribbon-httpclient/src/main/java/com/netflix/http4/NamedConnectionPool.java +++ b/ribbon-httpclient/src/main/java/com/netflix/http4/NamedConnectionPool.java @@ -98,7 +98,7 @@ void initMonitors(String name) { releaseCounter = Monitors.newCounter(name + "_Release"); deleteCounter = Monitors.newCounter(name + "_Delete"); requestTimer = Monitors.newTimer(name + "RequestEntry", TimeUnit.MILLISECONDS); - Monitors.registerObject(this); + Monitors.registerObject(name, this); } @Override