From 8ca6181001dc013991e6a9a0afef6fc92a8f4086 Mon Sep 17 00:00:00 2001 From: Adrian Sutton Date: Tue, 5 Feb 2019 07:19:58 +1000 Subject: [PATCH] Fix thread names in EthScheduler to include the thread number. (#755) Signed-off-by: Adrian Sutton --- .../pegasys/pantheon/ethereum/eth/manager/EthScheduler.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ethereum/eth/src/main/java/tech/pegasys/pantheon/ethereum/eth/manager/EthScheduler.java b/ethereum/eth/src/main/java/tech/pegasys/pantheon/ethereum/eth/manager/EthScheduler.java index 33c05458f7..eecb823fb7 100644 --- a/ethereum/eth/src/main/java/tech/pegasys/pantheon/ethereum/eth/manager/EthScheduler.java +++ b/ethereum/eth/src/main/java/tech/pegasys/pantheon/ethereum/eth/manager/EthScheduler.java @@ -50,18 +50,18 @@ public class EthScheduler { Executors.newFixedThreadPool( syncWorkerCount, new ThreadFactoryBuilder() - .setNameFormat(EthScheduler.class.getSimpleName() + "-Workers") + .setNameFormat(EthScheduler.class.getSimpleName() + "-Workers-%d") .build()), Executors.newScheduledThreadPool( 1, new ThreadFactoryBuilder() .setDaemon(true) - .setNameFormat(EthScheduler.class.getSimpleName() + "Timer") + .setNameFormat(EthScheduler.class.getSimpleName() + "Timer-%d") .build()), Executors.newFixedThreadPool( txWorkerCount, new ThreadFactoryBuilder() - .setNameFormat(EthScheduler.class.getSimpleName() + "-Transactions") + .setNameFormat(EthScheduler.class.getSimpleName() + "-Transactions-%d") .build())); }