From 64296ebd220033fba64eb958befdf2da3c61681e Mon Sep 17 00:00:00 2001 From: zhouzj Date: Tue, 23 Mar 2021 02:06:28 +0800 Subject: [PATCH] commitRust --- Rust/source/src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Rust/source/src/main.rs b/Rust/source/src/main.rs index 3d13bc4..7261534 100644 --- a/Rust/source/src/main.rs +++ b/Rust/source/src/main.rs @@ -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);