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

Method set_serial

libs/hbb_common/src/config.rs:789–796  ·  view source on GitHub ↗
(serial: i32)

Source from the content-addressed store, hash-verified

787 }
788
789 pub fn set_serial(serial: i32) {
790 let mut config = CONFIG2.write().unwrap();
791 if serial == config.serial {
792 return;
793 }
794 config.serial = serial;
795 config.store();
796 }
797
798 pub fn get_serial() -> i32 {
799 std::cmp::max(CONFIG2.read().unwrap().serial, SERIAL)

Callers

nothing calls this directly

Calls 2

writeMethod · 0.80
storeMethod · 0.80

Tested by

no test coverage detected