MCPcopy Create free account
hub / github.com/0xMiden/node / err_by_code

Method err_by_code

bin/benchmark/src/submit.rs:126–134  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

124 }
125
126 pub(crate) fn err_by_code(&self) -> HashMap<tonic::Code, u64> {
127 let mut map: HashMap<tonic::Code, u64> = HashMap::new();
128 for o in &self.outcomes {
129 if let Err(code) = o.result {
130 *map.entry(code).or_insert(0) += 1;
131 }
132 }
133 map
134 }
135}
136
137// SUBMISSION PRIMITIVES

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected