This commit is contained in:
2022-09-19 18:45:22 +08:00
parent 15214aa07e
commit 709e40fc28
2 changed files with 6 additions and 1 deletions
+1
View File
@@ -64,6 +64,7 @@ class Pool extends Component
$connection->stopHeartbeatCheck();
}
}
$this->logger->warning('channel status', $channel->stats());
}
+5 -1
View File
@@ -72,7 +72,11 @@ class SplQueue implements QueueInterface
public function stats(): array
{
// TODO: Implement stats() method.
return [];
return [
'consumer_num' => 0,
'producer_num' => 0,
'queue_num' => $this->length()
];
}