(max_attempts: u32)
| 130 | |
| 131 | impl RetryState { |
| 132 | pub fn new(max_attempts: u32) -> Self { |
| 133 | Self { |
| 134 | attempt: 0, |
| 135 | max_attempts, |
| 136 | last_error: None, |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | pub fn should_retry(&self) -> bool { |
| 141 | self.attempt < self.max_attempts |
nothing calls this directly
no outgoing calls
no test coverage detected