Skip to content

Commit

Permalink
Use Hyperf\Coroutine\Coroutine instead of Hyperf\Utils\Coroutine
Browse files Browse the repository at this point in the history
…(#5623)
  • Loading branch information
huangdijia authored Apr 12, 2023
1 parent b307301 commit 498f944
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion class_map/ThriftUdpTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
use Hyperf\Contract\StdoutLoggerInterface;
use Hyperf\Coordinator\Constants;
use Hyperf\Coordinator\CoordinatorManager;
use Hyperf\Coroutine\Coroutine;
use Hyperf\Engine\Channel;
use Hyperf\Utils\Coroutine;
use Psr\Log\LoggerInterface;
use Psr\Log\NullLogger;
use Socket;
Expand Down
4 changes: 3 additions & 1 deletion src/Middleware/TraceMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
*/
namespace Hyperf\Tracer\Middleware;

use Hyperf\Coroutine\Coroutine;
use Hyperf\HttpMessage\Exception\HttpException;
use Hyperf\Tracer\SpanStarter;
use Hyperf\Tracer\SpanTagManager;
use Hyperf\Tracer\SwitchManager;
use Hyperf\Utils\Coroutine;
use OpenTracing\Span;
use OpenTracing\Tracer;
use Psr\Http\Message\ResponseInterface;
Expand All @@ -24,6 +24,8 @@
use Psr\Http\Server\RequestHandlerInterface;
use Throwable;

use function Hyperf\Coroutine\defer;

class TraceMiddleware implements MiddlewareInterface
{
use SpanStarter;
Expand Down

0 comments on commit 498f944

Please sign in to comment.