mirror of
http://124.126.16.154:8888/singularity/hyperf-admin.git
synced 2026-01-15 06:55:06 +08:00
perf: 优化 config-center
This commit is contained in:
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user