@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | 'class' => static::class, |
| 22 | 22 | 'redirect' => false, |
| 23 | 23 | 'pipe' => 0, |
| 24 | - 'enable' => (bool)config('prometheus.enable', true), |
|
| 24 | + 'enable' => (bool) config('prometheus.enable', true), |
|
| 25 | 25 | ], |
| 26 | 26 | ]; |
| 27 | 27 | } |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | $taskWorkerNum = isset($swoole->setting['task_worker_num']) ? $swoole->setting['task_worker_num'] : 0; |
| 39 | 39 | $totalNum = $workerNum + $taskWorkerNum - 1; |
| 40 | 40 | $workerIds = range(0, $totalNum); |
| 41 | - $runJob = function () use ($swoole, $workerIds, $processCollector, $swooleStatsCollector, $systemCollector) { |
|
| 41 | + $runJob = function() use ($swoole, $workerIds, $processCollector, $swooleStatsCollector, $systemCollector) { |
|
| 42 | 42 | // Collect the metrics of Swoole stats() |
| 43 | 43 | $swooleStatsCollector->collect(); |
| 44 | 44 | |