rabb
This commit is contained in:
parent
190b0323db
commit
af22512f0c
2
sd.php
2
sd.php
|
|
@ -9,7 +9,7 @@ use Workerman\RabbitMQ\Client;
|
||||||
require_once __DIR__ . '/vendor/autoload.php';
|
require_once __DIR__ . '/vendor/autoload.php';
|
||||||
|
|
||||||
$worker = new Worker();
|
$worker = new Worker();
|
||||||
$worker->eventLoop = \Workerman\Events\Fiber::class;
|
$worker->eventLoop = \Workerman\Events\Swoole::class;
|
||||||
|
|
||||||
$worker->onWorkerStart = function() {
|
$worker->onWorkerStart = function() {
|
||||||
// Create RabbitMQ Client
|
// Create RabbitMQ Client
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue