MCPcopy 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
895pub fn set(c: Configuration) {
896 let mut conf_mutex = CONFIG.lock().unwrap();
897 *conf_mutex = Arc::new(c);
898}
899
900pub fn get() -> Arc<Configuration> {
901 let conf = CONFIG.lock().unwrap();

Callers 1

loadFunction · 0.70

Calls 1

unwrapMethod · 0.80

Tested by

no test coverage detected