Skip to content

Commit 84756a2

Browse files
author
Joey Yang
committed
fix typo
1 parent 2c6e7c1 commit 84756a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/top/code2life/config/DynamicConfigPropertiesWatcher.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,11 @@ private void checkChangesWithPeriod() throws IOException {
144144
if (hasDotDataLinkFile) {
145145
log.info("ConfigMap/Secret mode detected, will polling symbolic link instead.");
146146
symbolicLinkModifiedTime = Files.getLastModifiedTime(symLinkPath, LinkOption.NOFOLLOW_LINKS).toMillis();
147-
Executors.newSingleThreadScheduledExecutor(r -> new Thread(r, WATCH_THREAD)).scheduleWithFixedDelay(
147+
Executors.newSingleThreadScheduledExecutor(r -> new Thread(r, POLLING_THREAD)).scheduleWithFixedDelay(
148148
this::checkSymbolicLink, SYMBOL_LINK_POLLING_INTERVAL, SYMBOL_LINK_POLLING_INTERVAL, TimeUnit.MILLISECONDS);
149149
} else {
150150
// longer check for all config files, make up mechanism if WatchService doesn't work
151-
Executors.newSingleThreadScheduledExecutor(r -> new Thread(r, WATCH_THREAD)).scheduleWithFixedDelay(
151+
Executors.newSingleThreadScheduledExecutor(r -> new Thread(r, POLLING_THREAD)).scheduleWithFixedDelay(
152152
this::reloadAllConfigFiles, NORMAL_FILE_POLLING_INTERVAL, NORMAL_FILE_POLLING_INTERVAL, TimeUnit.MILLISECONDS);
153153
}
154154
}

0 commit comments

Comments
 (0)