Skip to content

Commit

Permalink
Refactor thread name to getName()
Browse files Browse the repository at this point in the history
  • Loading branch information
hexiaofeng committed May 28, 2024
1 parent ddcab76 commit 9f1b538
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ private void syncAndUpdate(PolicySubscriber subscriber) {
}
meta.status.set(false);
long delay = syncConfig.getInterval() + (long) (Math.random() * 1000);
timer.delay("service-live-syncer-" + subscriber.getName(), delay, () -> addTask(subscriber));
timer.delay(getName() + "-" + subscriber.getName(), delay, () -> addTask(subscriber));
}

private void onOk(PolicySubscriber subscriber, Service service, ServiceSyncMeta meta) {
Expand Down

0 comments on commit 9f1b538

Please sign in to comment.