MCPcopy Create free account
hub / github.com/Recordscript/recordscript / set_id

Method set_id

libs/hbb_common/src/config.rs:767–774  ·  view source on GitHub ↗
(id: &str)

Source from the content-addressed store, hash-verified

765 }
766
767 pub fn set_id(id: &str) {
768 let mut config = CONFIG.write().unwrap();
769 if id == config.id {
770 return;
771 }
772 config.id = id.into();
773 config.store();
774 }
775
776 pub fn set_nat_type(nat_type: i32) {
777 let mut config = CONFIG2.write().unwrap();

Callers

nothing calls this directly

Calls 2

writeMethod · 0.80
storeMethod · 0.80

Tested by

no test coverage detected