mirror of
https://github.com/predis/predis.git
synced 2026-08-30 04:02:22 +00:00
Remove useless helpers.
This commit is contained in:
@@ -12,8 +12,8 @@
|
||||
namespace Predis\Monitor;
|
||||
|
||||
use Predis\ClientInterface;
|
||||
use Predis\Helpers;
|
||||
use Predis\NotSupportedException;
|
||||
use Predis\Connection\AggregatedConnectionInterface;
|
||||
|
||||
/**
|
||||
* Client-side abstraction of a Redis MONITOR context.
|
||||
@@ -52,7 +52,7 @@ class MonitorContext implements \Iterator
|
||||
*/
|
||||
private function checkCapabilities(ClientInterface $client)
|
||||
{
|
||||
if (Helpers::isCluster($client->getConnection())) {
|
||||
if ($client->getConnection() instanceof AggregatedConnectionInterface) {
|
||||
throw new NotSupportedException('Cannot initialize a monitor context over a cluster of connections');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user