(error: RepositoryError)
| 246 | |
| 247 | impl From<RepositoryError> for AttemptFailure { |
| 248 | fn from(error: RepositoryError) -> Self { |
| 249 | if matches!(error, RepositoryError::ResurrectionLeaseChanged) { |
| 250 | AttemptFailure::Contended |
| 251 | } else { |
| 252 | AttemptFailure::Rejected(error) |
| 253 | } |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | impl Repository { |
nothing calls this directly
no outgoing calls
no test coverage detected