Merge pull request #5631 from JakubOnderka/patch-90

fix: [pubsub] Do not fetch setting for every push
pull/5633/head
Andras Iklody 2020-02-14 15:49:41 +01:00 committed by GitHub
commit 35536267a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -142,9 +142,7 @@ class PubSubTool
private function __pushToRedis($ns, $data)
{
$settings = $this->__getSetSettings();
$this->__redis->select($settings['redis_database']);
$this->__redis->rPush($settings['redis_namespace'] . $ns, $data);
$this->__redis->rPush($this->__settings['redis_namespace'] . $ns, $data);
return true;
}