MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / increment

Method increment

crates/opencode-session/src/retry.rs:144–147  ·  view source on GitHub ↗
(&mut self, error: String)

Source from the content-addressed store, hash-verified

142 }
143
144 pub fn increment(&mut self, error: String) {
145 self.attempt += 1;
146 self.last_error = Some(error);
147 }
148
149 pub fn next_delay(&self, error_info: Option<&ApiErrorInfo>) -> u64 {
150 delay(self.attempt, error_info)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected