Passing $appId on createRecord()
This commit is contained in:
parent
c6c3877cf7
commit
f1a14fbd1d
|
|
@ -103,7 +103,7 @@ class MemoryStatisticsLogger implements StatisticsLogger
|
|||
continue;
|
||||
}
|
||||
|
||||
$this->createRecord($statistic);
|
||||
$this->createRecord($statistic, $appId);
|
||||
|
||||
$currentConnectionCount = $this->channelManager->getConnectionCount($appId);
|
||||
|
||||
|
|
@ -140,9 +140,10 @@ class MemoryStatisticsLogger implements StatisticsLogger
|
|||
* Create a new record using the Statistic Driver.
|
||||
*
|
||||
* @param Statistic $statistic
|
||||
* @param mixed $appId
|
||||
* @return void
|
||||
*/
|
||||
public function createRecord(Statistic $statistic)
|
||||
public function createRecord(Statistic $statistic, $appId)
|
||||
{
|
||||
$this->driver::create($statistic->toArray());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ class RedisStatisticsLogger implements StatisticsLogger
|
|||
continue;
|
||||
}
|
||||
|
||||
$this->createRecord($statistic);
|
||||
$this->createRecord($statistic, $appId);
|
||||
|
||||
$currentConnectionCount = $this->channelManager->getConnectionCount($appId);
|
||||
|
||||
|
|
@ -203,9 +203,10 @@ class RedisStatisticsLogger implements StatisticsLogger
|
|||
* Create a new record using the Statistic Driver.
|
||||
*
|
||||
* @param array $statistic
|
||||
* @param mixed $appId
|
||||
* @return void
|
||||
*/
|
||||
protected function createRecord(array $statistic): void
|
||||
protected function createRecord(array $statistic, $appId): void
|
||||
{
|
||||
$this->driver::create([
|
||||
'app_id' => $appId,
|
||||
|
|
|
|||
Loading…
Reference in New Issue