auto commit
This commit is contained in:
2
Rust/source/Cargo.lock
generated
2
Rust/source/Cargo.lock
generated
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user