1
0
mirror of synced 2025-12-27 23:47:57 +08:00

commitRust

This commit is contained in:
zhouzj
2021-03-23 02:06:28 +08:00
parent a4a68c63f4
commit 64296ebd22

View File

@@ -13,8 +13,7 @@ fn main() {
// 全局设置一次运行参数
let mut options = IdGeneratorOptions::New(1);
options.WorkerId = 1;
options.WorkerIdBitLength = 1;
options.WorkerIdBitLength = 6;
options.SeqBitLength = 6;
//... 可以继续设置其它 options 参数
YitIdHelper::SetIdGenerator(options);