Skip to content

Commit

Permalink
feat:grpc:移除没有作用的channel
Browse files Browse the repository at this point in the history
  • Loading branch information
onanying committed Sep 18, 2021
1 parent 62a7619 commit 349a1db
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ class Client
*/
protected $client;

/**
* @var \Swoole\Coroutine\Channel
*/
protected $channel;

/**
* @var array
*/
Expand Down Expand Up @@ -71,7 +66,6 @@ public function __construct(string $host, int $port, bool $ssl = false, float $t
$this->timeout = $timeout;
$this->connect();

$this->channel = new \Swoole\Coroutine\Channel(100);
go(function () {
while (true) {
$response = $this->client->recv(-1);
Expand Down Expand Up @@ -114,7 +108,6 @@ public function close(): void
{
$this->closed = true;
$this->client->close();
$this->channel->close();
}

/**
Expand Down

0 comments on commit 349a1db

Please sign in to comment.