-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wait sometimes until channel manager is empty, before
close
by reac…
…hed `max_requests`. (#3)
- Loading branch information
1 parent
48e2a56
commit 19dc5ec
Showing
4 changed files
with
68 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
/** | ||
* This file is part of Hyperf. | ||
* | ||
* @link https://www.hyperf.io | ||
* @document https://hyperf.wiki | ||
* @contact [email protected] | ||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE | ||
*/ | ||
use PhpCsFixer\Config; | ||
use PhpCsFixer\Finder; | ||
|
||
$header = <<<'EOF' | ||
This file is part of Hyperf. | ||
|
@@ -9,7 +21,7 @@ | |
@license https://github.com/hyperf/hyperf/blob/master/LICENSE | ||
EOF; | ||
|
||
return (new PhpCsFixer\Config()) | ||
return (new Config()) | ||
->setRiskyAllowed(true) | ||
->setRules([ | ||
'@PSR2' => true, | ||
|
@@ -23,13 +35,13 @@ | |
'location' => 'after_declare_strict', | ||
], | ||
'array_syntax' => [ | ||
'syntax' => 'short' | ||
'syntax' => 'short', | ||
], | ||
'list_syntax' => [ | ||
'syntax' => 'short' | ||
'syntax' => 'short', | ||
], | ||
'concat_space' => [ | ||
'spacing' => 'one' | ||
'spacing' => 'one', | ||
], | ||
'blank_line_before_statement' => [ | ||
'statements' => [ | ||
|
@@ -38,7 +50,7 @@ | |
], | ||
'general_phpdoc_annotation_remove' => [ | ||
'annotations' => [ | ||
'author' | ||
'author', | ||
], | ||
], | ||
'ordered_imports' => [ | ||
|
@@ -85,9 +97,10 @@ | |
'single_quote' => true, | ||
'standardize_not_equals' => true, | ||
'multiline_comment_opening_closing' => true, | ||
'single_line_empty_body' => false, | ||
]) | ||
->setFinder( | ||
PhpCsFixer\Finder::create() | ||
Finder::create() | ||
->exclude('vendor') | ||
->in(__DIR__) | ||
) | ||
|
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
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