Skip to content

Commit 63c5de5

Browse files
committed
Change delay from 1s to 100ms
1 parent 8b24c4a commit 63c5de5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tang-commons/src/main/kotlin/com/tang/commons/utils/queue/bootstrap/QueueBootstrap.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class QueueBootstrap {
3333
LOGGER.info("Timer wheel queue scanner starting...")
3434
val wheelQueue = WheelQueue()
3535
val timerTask = QueueScanTimer(wheelQueue)
36-
newScheduledThreadPool.scheduleWithFixedDelay(timerTask, 0, 1, TimeUnit.SECONDS)
36+
newScheduledThreadPool.scheduleWithFixedDelay(timerTask, 0, 100, TimeUnit.MILLISECONDS)
3737
LOGGER.info("Timer wheel queue scanner start up.")
3838
return wheelQueue
3939
}

0 commit comments

Comments
 (0)