Skip to content

Commit

Permalink
fixed #478
Browse files Browse the repository at this point in the history
  • Loading branch information
hhxsv5 committed Sep 12, 2024
1 parent 57a5931 commit 01132ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Swoole/Process/CustomProcessTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ public function makeProcess(callable $callback, array $config)
if (empty($config['queue'])) {
$process->useQueue();
} else {
$msgKey = isset($config['msg_key']) ? $config['msg_key'] : 0;
$mode = isset($config['mode']) ? $config['mode'] : 2;
$capacity = isset($config['capacity']) ? $config['capacity'] : -1;
$msgKey = isset($config['queue']['msg_key']) ? $config['queue']['msg_key'] : 0;
$mode = isset($config['queue']['mode']) ? $config['queue']['mode'] : 2;
$capacity = isset($config['queue']['capacity']) ? $config['queue']['capacity'] : -1;
$process->useQueue($msgKey, $mode, $capacity);
}
}
Expand Down

0 comments on commit 01132ea

Please sign in to comment.