From ffe76fbd32d03c008f5383b87e869b489ad51aa1 Mon Sep 17 00:00:00 2001 From: Deeka Wong Date: Wed, 31 Jan 2024 09:39:02 +0800 Subject: [PATCH] Use `Hyperf\Coroutine\Coroutine` instead of `Hyperf\Engine\Coroutine` (#6513) --- src/Adapter/Reporter/HttpClientFactory.php | 2 +- src/Adapter/Reporter/KafkaClientFactory.php | 2 +- src/Aspect/CoroutineAspect.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Adapter/Reporter/HttpClientFactory.php b/src/Adapter/Reporter/HttpClientFactory.php index 605cabc..b4d751d 100644 --- a/src/Adapter/Reporter/HttpClientFactory.php +++ b/src/Adapter/Reporter/HttpClientFactory.php @@ -14,8 +14,8 @@ use Closure; use Hyperf\Coordinator\Constants; use Hyperf\Coordinator\CoordinatorManager; +use Hyperf\Coroutine\Coroutine; use Hyperf\Engine\Channel; -use Hyperf\Engine\Coroutine; use Hyperf\Guzzle\ClientFactory; use RuntimeException; use Throwable; diff --git a/src/Adapter/Reporter/KafkaClientFactory.php b/src/Adapter/Reporter/KafkaClientFactory.php index 4a6cf8a..bf22305 100644 --- a/src/Adapter/Reporter/KafkaClientFactory.php +++ b/src/Adapter/Reporter/KafkaClientFactory.php @@ -14,8 +14,8 @@ use Closure; use Hyperf\Coordinator\Constants; use Hyperf\Coordinator\CoordinatorManager; +use Hyperf\Coroutine\Coroutine; use Hyperf\Engine\Channel; -use Hyperf\Engine\Coroutine; use Hyperf\Tracer\Exception\ConnectionClosedException; use longlang\phpkafka\Producer\Producer; use longlang\phpkafka\Producer\ProducerConfig; diff --git a/src/Aspect/CoroutineAspect.php b/src/Aspect/CoroutineAspect.php index 3536ce1..d6b52db 100644 --- a/src/Aspect/CoroutineAspect.php +++ b/src/Aspect/CoroutineAspect.php @@ -11,9 +11,9 @@ */ namespace Hyperf\Tracer\Aspect; +use Hyperf\Coroutine\Coroutine as Co; use Hyperf\Di\Aop\AbstractAspect; use Hyperf\Di\Aop\ProceedingJoinPoint; -use Hyperf\Engine\Coroutine as Co; use Hyperf\Tracer\SpanTagManager; use Hyperf\Tracer\SwitchManager; use Hyperf\Tracer\TracerContext;