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 85c6e53 commit a249562
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Adapter/Prometheus/MetricFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use Hyperf\Contract\StdoutLoggerInterface;
use Hyperf\Coordinator\Constants as Coord;
use Hyperf\Coordinator\CoordinatorManager;
use Hyperf\Coroutine\Coroutine;
use Hyperf\Engine\Http\ServerFactory;
use Hyperf\Engine\Http\Stream;
use Hyperf\Engine\ResponseEmitter;
Expand All @@ -27,7 +28,6 @@
use Hyperf\Metric\Exception\InvalidArgumentException;
use Hyperf\Metric\Exception\RuntimeException;
use Hyperf\Metric\MetricFactoryPicker;
use Hyperf\Utils\Coroutine;
use Hyperf\Utils\Network;
use Hyperf\Utils\Str;
use Prometheus\CollectorRegistry;
Expand Down
2 changes: 1 addition & 1 deletion src/Listener/OnBeforeHandle.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
use Hyperf\Coordinator\Constants;
use Hyperf\Coordinator\CoordinatorManager;
use Hyperf\Coordinator\Timer;
use Hyperf\Coroutine\Coroutine;
use Hyperf\Event\Contract\ListenerInterface;
use Hyperf\Metric\Contract\MetricFactoryInterface;
use Hyperf\Metric\Event\MetricFactoryReady;
use Hyperf\Metric\MetricFactoryPicker;
use Hyperf\Metric\MetricSetter;
use Hyperf\Utils\Coroutine;
use Psr\Container\ContainerInterface;
use Psr\EventDispatcher\EventDispatcherInterface;

Expand Down
2 changes: 1 addition & 1 deletion src/Listener/OnCoroutineServerStart.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
use Hyperf\Coordinator\Constants;
use Hyperf\Coordinator\CoordinatorManager;
use Hyperf\Coordinator\Timer;
use Hyperf\Coroutine\Coroutine;
use Hyperf\Event\Contract\ListenerInterface;
use Hyperf\Metric\Contract\MetricFactoryInterface;
use Hyperf\Metric\Event\MetricFactoryReady;
use Hyperf\Metric\Exception\RuntimeException;
use Hyperf\Metric\MetricSetter;
use Hyperf\Server\Event\MainCoroutineServerStart;
use Hyperf\Utils\Coroutine;
use Psr\Container\ContainerInterface;
use Psr\EventDispatcher\EventDispatcherInterface;

Expand Down
2 changes: 1 addition & 1 deletion src/Listener/OnMetricFactoryReady.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
use Hyperf\Coordinator\Constants;
use Hyperf\Coordinator\CoordinatorManager;
use Hyperf\Coordinator\Timer;
use Hyperf\Coroutine\Coroutine;
use Hyperf\Engine\Coroutine as Co;
use Hyperf\Event\Contract\ListenerInterface;
use Hyperf\Metric\Contract\MetricFactoryInterface;
use Hyperf\Metric\CoroutineServerStats;
use Hyperf\Metric\Event\MetricFactoryReady;
use Hyperf\Metric\MetricFactoryPicker;
use Hyperf\Metric\MetricSetter;
use Hyperf\Utils\Coroutine;
use Hyperf\Utils\System;
use Psr\Container\ContainerInterface;
use Swoole\Server as SwooleServer;
Expand Down
2 changes: 1 addition & 1 deletion src/Listener/OnWorkerStart.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
use Hyperf\Coordinator\Constants;
use Hyperf\Coordinator\CoordinatorManager;
use Hyperf\Coordinator\Timer;
use Hyperf\Coroutine\Coroutine;
use Hyperf\Event\Contract\ListenerInterface;
use Hyperf\Framework\Event\BeforeWorkerStart;
use Hyperf\Metric\Contract\MetricFactoryInterface;
use Hyperf\Metric\Event\MetricFactoryReady;
use Hyperf\Metric\MetricSetter;
use Hyperf\Utils\Coroutine;
use Psr\Container\ContainerInterface;
use Psr\EventDispatcher\EventDispatcherInterface;

Expand Down
2 changes: 1 addition & 1 deletion src/Listener/PoolWatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
use Hyperf\Coordinator\Constants;
use Hyperf\Coordinator\CoordinatorManager;
use Hyperf\Coordinator\Timer;
use Hyperf\Coroutine\Coroutine;
use Hyperf\Framework\Event\BeforeWorkerStart;
use Hyperf\Metric\Contract\MetricFactoryInterface;
use Hyperf\Pool\Pool;
use Hyperf\Server\Event\MainCoroutineServerStart;
use Hyperf\Utils\Coroutine;
use Psr\Container\ContainerInterface;

abstract class PoolWatcher
Expand Down
2 changes: 1 addition & 1 deletion src/Listener/QueueWatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
use Hyperf\Coordinator\Constants;
use Hyperf\Coordinator\CoordinatorManager;
use Hyperf\Coordinator\Timer;
use Hyperf\Coroutine\Coroutine;
use Hyperf\Event\Contract\ListenerInterface;
use Hyperf\Metric\Event\MetricFactoryReady;
use Hyperf\Utils\Coroutine;
use Psr\Container\ContainerInterface;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/MetricFactoryPicker.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
namespace Hyperf\Metric;

use Hyperf\Contract\ConfigInterface;
use Hyperf\Coroutine\Coroutine;
use Hyperf\Metric\Adapter\Prometheus\MetricFactory as PrometheusFactory;
use Hyperf\Metric\Adapter\RemoteProxy\MetricFactory as RemoteFactory;
use Hyperf\Metric\Contract\MetricFactoryInterface;
use Hyperf\Metric\Exception\InvalidArgumentException;
use Hyperf\Process\ProcessCollector;
use Hyperf\Utils\Coroutine;
use Psr\Container\ContainerInterface;

class MetricFactoryPicker
Expand Down
2 changes: 1 addition & 1 deletion src/MetricSetter.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
*/
namespace Hyperf\Metric;

use Hyperf\Coroutine\Coroutine;
use Hyperf\Metric\Contract\GaugeInterface;
use Hyperf\Retry\Retry;
use Hyperf\Utils\Coroutine;

use function array_values;
use function str_replace;
Expand Down

0 comments on commit a249562

Please sign in to comment.