Skip to content

Commit 01132ea

Browse files
committed
fixed #478
1 parent 57a5931 commit 01132ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Swoole/Process/CustomProcessTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ public function makeProcess(callable $callback, array $config)
9999
if (empty($config['queue'])) {
100100
$process->useQueue();
101101
} else {
102-
$msgKey = isset($config['msg_key']) ? $config['msg_key'] : 0;
103-
$mode = isset($config['mode']) ? $config['mode'] : 2;
104-
$capacity = isset($config['capacity']) ? $config['capacity'] : -1;
102+
$msgKey = isset($config['queue']['msg_key']) ? $config['queue']['msg_key'] : 0;
103+
$mode = isset($config['queue']['mode']) ? $config['queue']['mode'] : 2;
104+
$capacity = isset($config['queue']['capacity']) ? $config['queue']['capacity'] : -1;
105105
$process->useQueue($msgKey, $mode, $capacity);
106106
}
107107
}

0 commit comments

Comments
 (0)