Skip to content

Commit 5805799

Browse files
tnullrolznz
authored andcommitted
Don't skip retrying on ConflictError
1 parent 4aacc1f commit 5805799

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/io/vss_store.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -791,12 +791,7 @@ fn retry_policy() -> CustomRetryPolicy {
791791
.with_max_total_delay(Duration::from_secs(180))
792792
.with_max_jitter(Duration::from_millis(100))
793793
.skip_retry_on_error(Box::new(|e: &VssError| {
794-
matches!(
795-
e,
796-
VssError::NoSuchKeyError(..)
797-
| VssError::InvalidRequestError(..)
798-
| VssError::ConflictError(..)
799-
)
794+
matches!(e, VssError::NoSuchKeyError(..) | VssError::InvalidRequestError(..))
800795
}) as _)
801796
}
802797

0 commit comments

Comments
 (0)