Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChrisFeldmeier/OpenCodeRust
/ should_retry
Method
should_retry
crates/opencode-session/src/retry.rs:140–142 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
138
}
139
140
pub fn should_retry(&self) -> bool {
141
self.attempt < self.max_attempts
142
}
143
144
pub fn increment(&mut self, error: String) {
145
self.attempt += 1;
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected