-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config: autoAckBeforeJobStart set true value by default
- Loading branch information
kcloze
committed
Aug 18, 2019
1 parent
82530aa
commit 2c38bcb
Showing
4 changed files
with
6 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of PHP CS Fixer. | ||
* This file is part of Swoole-jobs | ||
* (c) kcloze <[email protected]> | ||
* This source file is subject to the MIT license that is bundled | ||
* with this source code in the file LICENSE. | ||
|
@@ -36,11 +36,10 @@ public static function getConfig() | |
* @param mixed $topic | ||
* @param mixed $name | ||
* */ | ||
|
||
public static function getTopicConfig($config, $topic, $name) | ||
{ | ||
$key=array_search($topic, array_column($config, 'name'), true); | ||
|
||
return $config[$key][$name] ?? false; | ||
return $config[$key][$name] ?? true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters