Skip to content

Commit a814cab

Browse files
authored
Use Hyperf\Coroutine\Channel\Pool instead of Hyperf\Utils\ChannelPool (#5671)
1 parent 19025eb commit a814cab

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"require": {
2020
"php": ">=8.0",
2121
"hyperf/code-parser": "~3.0.0",
22+
"hyperf/coroutine": "~3.0.0",
2223
"hyperf/grpc": "~3.0.0",
23-
"hyperf/utils": "~3.0.0",
2424
"jean85/pretty-package-versions": "^1.2|^2.0"
2525
},
2626
"autoload": {

src/BaseClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
use Google\Protobuf\Internal\Message;
1515
use Hyperf\Context\ApplicationContext;
16+
use Hyperf\Coroutine\Channel\Pool as ChannelPool;
1617
use Hyperf\Grpc\Parser;
1718
use Hyperf\Grpc\StatusCode;
1819
use Hyperf\GrpcClient\Exception\GrpcClientException;
19-
use Hyperf\Utils\ChannelPool;
2020
use InvalidArgumentException;
2121
use Swoole\Http2\Response;
2222

src/GrpcClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
*/
1212
namespace Hyperf\GrpcClient;
1313

14+
use Hyperf\Coroutine\Channel\Pool as ChannelPool;
1415
use Hyperf\Coroutine\Coroutine;
1516
use Hyperf\Engine\Channel;
1617
use Hyperf\Grpc\StatusCode;
1718
use Hyperf\GrpcClient\Exception\GrpcClientException;
18-
use Hyperf\Utils\ChannelPool;
1919
use InvalidArgumentException;
2020
use RuntimeException;
2121
use Swoole\Coroutine\Http2\Client as SwooleHttp2Client;

tests/BaseClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313

1414
use Grpc\UserReply;
1515
use Hyperf\Context\ApplicationContext;
16+
use Hyperf\Coroutine\Channel\Pool as ChannelPool;
1617
use Hyperf\Coroutine\Coroutine;
1718
use Hyperf\Coroutine\Parallel;
1819
use Hyperf\Di\Container;
1920
use Hyperf\Grpc\Parser;
2021
use Hyperf\GrpcClient\BaseClient;
2122
use Hyperf\GrpcClient\Exception\GrpcClientException;
22-
use Hyperf\Utils\ChannelPool;
2323
use HyperfTest\GrpcClient\Stub\HiClient;
2424
use Mockery;
2525
use PHPUnit\Framework\TestCase;

tests/GoUserServiceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
namespace HyperfTest\GrpcClient;
1313

1414
use Hyperf\Context\ApplicationContext;
15+
use Hyperf\Coroutine\Channel\Pool as ChannelPool;
1516
use Hyperf\Di\Container;
16-
use Hyperf\Utils\ChannelPool;
1717
use HyperfTest\GrpcClient\Stub\UserServiceClient;
1818
use Mockery;
1919
use PHPUnit\Framework\TestCase;

tests/RouteGuideClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
namespace HyperfTest\GrpcClient;
1313

1414
use Hyperf\Context\ApplicationContext;
15+
use Hyperf\Coroutine\Channel\Pool as ChannelPool;
1516
use Hyperf\Di\Container;
1617
use Hyperf\GrpcClient\Exception\GrpcClientException;
1718
use Hyperf\GrpcClient\StreamingCall;
18-
use Hyperf\Utils\ChannelPool;
1919
use HyperfTest\GrpcClient\Stub\RouteGuideClient;
2020
use Mockery;
2121
use PHPUnit\Framework\TestCase;

0 commit comments

Comments
 (0)