Browse Source

commitRust

tags/v1.2
zhouzj 4 years ago
parent
commit
64296ebd22
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      Rust/source/src/main.rs

+ 1
- 2
Rust/source/src/main.rs 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);


Loading…
Cancel
Save