mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-11-03 08:07:27 +00:00
Update init.rs (#350)
This commit is contained in:
parent
7972bf81d9
commit
3de0dc5ba3
@ -20,7 +20,7 @@ pub fn init_once() {
|
||||
extern "C" {
|
||||
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() });
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user