mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-04-02 22:45:41 +00:00
Update init.rs
This commit is contained in:
parent
898350e271
commit
7235db9899
@ -20,7 +20,7 @@ pub fn init_once() {
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
fn GFp_cpuid_setup();
|
fn GFp_cpuid_setup();
|
||||||
}
|
}
|
||||||
static INIT: std::sync::Once = std::sync::ONCE_INIT;
|
static INIT: std::sync::Once = std::sync::Once::new();
|
||||||
INIT.call_once(|| unsafe { GFp_cpuid_setup() });
|
INIT.call_once(|| unsafe { GFp_cpuid_setup() });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user