MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / from

Method from

atomic-repository/src/repository/resurrection.rs:248–254  ·  view source on GitHub ↗
(error: RepositoryError)

Source from the content-addressed store, hash-verified

246
247impl 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
257impl Repository {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected