This commit is contained in:
2020-11-03 19:23:14 +08:00
parent 8cde44b4d0
commit 1c7be3ed77
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ abstract class Process extends \Swoole\Process
parent::__construct(function ($process) use ($name, $class) {
if (Snowflake::isLinux()) {
$prefix = ucfirst(rtrim(Snowflake::app()->id, ':'));
$this->name($prefix . ' ' . $class . '::class');
$this->name($prefix . ': ' . $class . '::class');
}
$this->onHandler($process);
}, false, 1, $enable_coroutine);
-1
View File
@@ -42,7 +42,6 @@ class ServerInotify extends Process
if (extension_loaded('inotify')) {
$this->inotify = inotify_init();
$this->events = IN_MODIFY | IN_DELETE | IN_CREATE | IN_MOVE;
$process->name('event: file change.');
foreach ($this->dirs as $dir) {
$this->watch($dir);
}