1
0
mirror of synced 2026-02-26 14:58:06 +08:00

auto commit

This commit is contained in:
zhouzj
2021-03-23 11:59:40 +08:00
parent 96bf37a4fe
commit f5bf463370
3 changed files with 4 additions and 2 deletions

View File

@@ -23,12 +23,14 @@ impl YitIdHelper {
}
}
pub fn SetIdGenerator(options: IdGeneratorOptions) {
let mut idgenArc = YitIdHelper::IdGenInstance();
let mut idgen = idgenArc.lock().unwrap();
idgen.Worker.SetOptions(options);
}
#[no_mangle]
pub fn NextId() -> i64 {
let mut idgenArc = YitIdHelper::IdGenInstance();
let mut idgen = idgenArc.lock().unwrap();