diff --git a/src/Factory.php b/src/Factory.php index 2ec4d79..94dcc6e 100644 --- a/src/Factory.php +++ b/src/Factory.php @@ -22,7 +22,6 @@ public function __construct(LoopInterface $loop, Resolver $resolver = null) public function createClient($address) { - $factory = $this; $loop = $this->loop; return $this->resolveAddress($address)->then(function ($address) use ($loop) { @@ -37,7 +36,6 @@ public function createClient($address) public function createServer($address) { - $factory = $this; $loop = $this->loop; return $this->resolveAddress($address)->then(function ($address) use ($loop) {