perf: 优化 config-center

This commit is contained in:
刀刀
2020-06-23 17:38:52 +08:00
parent 083d10b7bb
commit 66dcd0cf35

View File

@@ -45,9 +45,8 @@ class BootProcessListener implements ListenerInterface
$this->log->info('tick begin');
$interval = config('config_center.interval', 1);
$this->load();
$that = $this;
Timer::tick($interval * 1000, function () use ($that) {
$that->load();
Timer::tick($interval * 1000, function () {
$this->load();
});
}