Skip to content

Commit b9f91e2

Browse files
committed
Don't skip retrying on ConflictError
1 parent b4b2843 commit b9f91e2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/io/vss_store.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -686,12 +686,7 @@ fn retry_policy() -> CustomRetryPolicy {
686686
.with_max_total_delay(Duration::from_secs(180))
687687
.with_max_jitter(Duration::from_millis(100))
688688
.skip_retry_on_error(Box::new(|e: &VssError| {
689-
matches!(
690-
e,
691-
VssError::NoSuchKeyError(..)
692-
| VssError::InvalidRequestError(..)
693-
| VssError::ConflictError(..)
694-
)
689+
matches!(e, VssError::NoSuchKeyError(..) | VssError::InvalidRequestError(..))
695690
}) as _)
696691
}
697692

0 commit comments

Comments
 (0)