From 015f6f4abb8fda94cb2427f106f305aa715335fd Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Fri, 11 Sep 2020 13:27:06 +0300 Subject: [PATCH] Removed references --- src/Statistics/Collectors/RedisCollector.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Statistics/Collectors/RedisCollector.php b/src/Statistics/Collectors/RedisCollector.php index 5c8dff0..bb75f27 100644 --- a/src/Statistics/Collectors/RedisCollector.php +++ b/src/Statistics/Collectors/RedisCollector.php @@ -220,7 +220,7 @@ class RedisCollector extends MemoryCollector return $this->channelManager ->getPublishClient() ->smembers(static::$redisSetName) - ->then(function ($members) use (&$statistics) { + ->then(function ($members) { $appsWithStatistics = []; foreach ($members as $appId) { @@ -249,9 +249,7 @@ class RedisCollector extends MemoryCollector return $this->channelManager ->getPublishClient() ->hgetall($this->channelManager->getRedisKey($appId, null, ['stats'])) - ->then(function ($list) use ($appId, &$appStatistics) { - return $this->listToStatisticInstance( - $appId, $list + ->then(function ($list) use ($appId) { ); }); }