123456789101112131415161718 |
- <?php
- declare(strict_types=1);
- /**
- * This file is part of Hyperf.
- *
- * @link https://www.hyperf.io
- * @document https://hyperf.wiki
- * @contact group@hyperf.io
- * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
- */
- use function Hyperf\Support\env;
- return [
- 'begin_second' => Hyperf\Snowflake\MetaGenerator::DEFAULT_BEGIN_SECOND,
- 'datacenter_id' => env('SNOWFLAKE_DATACENTER_ID', 1),
- 'worker_id' => env('SNOWFLAKE_WORKER_ID', 1),
- ];
|