Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chirpstack/chirpstack
/ set
Function
set
chirpstack/src/config.rs:895–898 ·
view source on GitHub ↗
(c: Configuration)
Source
from the content-addressed store, hash-verified
893
}
894
895
pub fn set(c: Configuration) {
896
let mut conf_mutex = CONFIG.lock().unwrap();
897
*conf_mutex = Arc::new(c);
898
}
899
900
pub fn get() -> Arc<Configuration> {
901
let conf = CONFIG.lock().unwrap();
Callers
1
load
Function · 0.70
Calls
1
unwrap
Method · 0.80
Tested by
no test coverage detected