Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Incorporate review feedback

  • Loading branch information...
commit fedad955c8170998d9bf2b5ee798456203260b1a 1 parent 40e0e2d
Raghavendra Prabhu authored
View
2  querulous-core/src/main/scala/com/twitter/querulous/DaemonThreadFactory.scala
@@ -8,7 +8,7 @@ class DaemonThreadFactory(nameSuffix : String) extends ThreadFactory {
val threadNumber = new AtomicInteger(1)
def newThread(r: Runnable) = {
- val thread = new Thread(group, r, "querulous-" + nameSuffix + "-" + threadNumber.getAndIncrement())
+ val thread = new Thread(group, r, "querulous-%s-%d".format(nameSuffix, threadNumber.getAndIncrement()))
if (!thread.isDaemon) {
thread.setDaemon(true)
}
Please sign in to comment.
Something went wrong with that request. Please try again.