MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / get_counter

Function get_counter

crates/opencode-core/src/id.rs:48–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46}
47
48fn get_counter() -> u32 {
49 let mut counter = COUNTER.lock().unwrap();
50 *counter += 1;
51 *counter
52}
53
54pub fn create(prefix: Prefix, descending: bool, timestamp: Option<u64>) -> String {
55 let current_timestamp = timestamp.unwrap_or_else(|| {

Callers 1

createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected