@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | $loop->addPeriodicTimer( |
| 49 | 49 | 15, |
| 50 | 50 | fn() => $this->metricsHandler->getNbUsers()->then( |
| 51 | - function (int $nbUsers) { |
|
| 51 | + function(int $nbUsers) { |
|
| 52 | 52 | $memory = \memory_get_usage(true) / 1024 / 1024; |
| 53 | 53 | $this->logger()->debug("Users: {$nbUsers} - Memory: {$memory}MB"); |
| 54 | 54 | } |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | ); |
| 57 | 57 | $socket->on( |
| 58 | 58 | 'connection', |
| 59 | - function (Socket\ConnectionInterface $connection) use ($localAddress) { |
|
| 59 | + function(Socket\ConnectionInterface $connection) use ($localAddress) { |
|
| 60 | 60 | $this->metricsHandler->incrementUsers($localAddress); |
| 61 | 61 | $connection->on('close', fn() => $this->metricsHandler->decrementUsers($localAddress)); |
| 62 | 62 | } |