mirror of
https://github.com/predis/predis.git
synced 2026-10-19 02:06:08 +00:00
Allow PubSub / MultiExec with Replication
This commit is contained in:
committed by
Till Krüss
parent
15244c9642
commit
e5221fa13b
@@ -12,7 +12,7 @@
|
||||
namespace Predis\Monitor;
|
||||
|
||||
use Predis\ClientInterface;
|
||||
use Predis\Connection\AggregateConnectionInterface;
|
||||
use Predis\Connection\Cluster\ClusterInterface;
|
||||
use Predis\NotSupportedException;
|
||||
|
||||
/**
|
||||
@@ -56,9 +56,9 @@ class Consumer implements \Iterator
|
||||
*/
|
||||
private function assertClient(ClientInterface $client)
|
||||
{
|
||||
if ($client->getConnection() instanceof AggregateConnectionInterface) {
|
||||
if ($client->getConnection() instanceof ClusterInterface) {
|
||||
throw new NotSupportedException(
|
||||
'Cannot initialize a monitor consumer over aggregate connections.'
|
||||
'Cannot initialize a monitor consumer over cluster connections.'
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user