From 30ad467199bc26f8b2718f06a4a2f4de4384e02b Mon Sep 17 00:00:00 2001 From: Andrew Spyker Date: Thu, 22 Jan 2015 08:35:49 -0800 Subject: [PATCH] changes suggested by @elandau --- .../main/java/com/netflix/client/PrimeConnections.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ribbon-core/src/main/java/com/netflix/client/PrimeConnections.java b/ribbon-core/src/main/java/com/netflix/client/PrimeConnections.java index 0acf06c..cb7925f 100644 --- a/ribbon-core/src/main/java/com/netflix/client/PrimeConnections.java +++ b/ribbon-core/src/main/java/com/netflix/client/PrimeConnections.java @@ -64,10 +64,10 @@ public class PrimeConnections { } public static class PrimeConnectionEndStats { - public int total; - public int success; - public int failure; - public long totalTime; + public final int total; + public final int success; + public final int failure; + public final long totalTime; public PrimeConnectionEndStats(int total, int success, int failure, long totalTime) { this.total = total; @@ -307,7 +307,7 @@ public class PrimeConnections { catch (RejectedExecutionException ree) { logger.error("executor submit failed", ree); } - catch (Throwable e) { + catch (Exception e) { logger.error("general error", e); // It does not really matter if there was an exception, // the goal here is to attempt "priming/opening" the route -- GitLab