modify plugin name

This commit is contained in:
2022-06-17 09:57:57 +08:00
parent 12b59eaaa3
commit fb5b3ed27d
+4 -4
View File
@@ -163,13 +163,13 @@ class Server extends HttpService
/** /**
* @param OnWorkerStart $onWorkerStart * @param OnTaskerStart $onWorkerStart
* @throws ConfigException * @throws ConfigException
*/ */
public function setTaskerName(OnWorkerStart $onWorkerStart): void public function setTaskerName(OnTaskerStart $onWorkerStart): void
{ {
$prefix = sprintf('Worker Process[%d].%d', $onWorkerStart->server->worker_pid, $onWorkerStart->workerId); $prefix = sprintf('Tasker Process[%d].%d', $onWorkerStart->server->worker_pid, $onWorkerStart->workerId);
set_env('environmental', Kiri::WORKER); set_env('environmental', Kiri::TASK);
Kiri::setProcessName($prefix); Kiri::setProcessName($prefix);
} }