This commit is contained in:
2020-12-17 14:12:44 +08:00
parent 9516baef92
commit 33e5416dda
38 changed files with 100 additions and 101 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ namespace Snowflake\Abstracts;
use Exception;
use JetBrains\PhpStorm\Pure;
use Swoole\Coroutine;
use Swoole\Coroutine\Channel;
@@ -57,7 +57,7 @@ abstract class Pool extends Component
* @param false $isMaster
* @return string
*/
#[Pure] public function name($cds, $isMaster = false): string
public function name($cds, $isMaster = false): string
{
if ($isMaster === true) {
return hash('sha256', $cds . 'master');