Skip to content

Commit

Permalink
Remove clone
Browse files Browse the repository at this point in the history
  • Loading branch information
jenky committed Jul 29, 2023
1 parent cc3d16a commit eaeaf07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PoolFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private function createReactPool(ConnectorInterface $connector): React\Pool
$client = $connector->client();

if ($client instanceof React\AsyncClientInterface) {
return new React\Pool(clone $connector);
return new React\Pool($connector);
}

$this->assertConnector($connector);
Expand Down Expand Up @@ -153,7 +153,7 @@ private function createPslPool(ConnectorInterface $connector): Psl\Pool
$client = $connector->client();

if ($client instanceof Psl\AsyncClientInterface) {
return new Psl\Pool(clone $connector);
return new Psl\Pool($connector);
}

$this->assertConnector($connector);
Expand Down

0 comments on commit eaeaf07

Please sign in to comment.