提交 30ad4671 编写于 作者: A Andrew Spyker

changes suggested by @elandau

上级 706af372
...@@ -64,10 +64,10 @@ public class PrimeConnections { ...@@ -64,10 +64,10 @@ public class PrimeConnections {
} }
public static class PrimeConnectionEndStats { public static class PrimeConnectionEndStats {
public int total; public final int total;
public int success; public final int success;
public int failure; public final int failure;
public long totalTime; public final long totalTime;
public PrimeConnectionEndStats(int total, int success, int failure, long totalTime) { public PrimeConnectionEndStats(int total, int success, int failure, long totalTime) {
this.total = total; this.total = total;
...@@ -307,7 +307,7 @@ public class PrimeConnections { ...@@ -307,7 +307,7 @@ public class PrimeConnections {
catch (RejectedExecutionException ree) { catch (RejectedExecutionException ree) {
logger.error("executor submit failed", ree); logger.error("executor submit failed", ree);
} }
catch (Throwable e) { catch (Exception e) {
logger.error("general error", e); logger.error("general error", e);
// It does not really matter if there was an exception, // It does not really matter if there was an exception,
// the goal here is to attempt "priming/opening" the route // the goal here is to attempt "priming/opening" the route
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册