1
0
mirror of synced 2025-12-16 18:18:10 +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

@@ -2,7 +2,7 @@
# It is not intended for manual editing.
[[package]]
name = "RS-SnowF"
version = "0.1.0"
version = "1.0.0"
dependencies = [
"chrono",
"lazy_static",

View File

@@ -2,7 +2,7 @@
name = "RS-SnowF"
version = "1.0.0"
authors = ["yitter <yitter@126.com>"]
edition = "2021"
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

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();