s3sink, s3src: Max 1 (re)try when retry-duration < request_timeout.

When retry-duration is less than request_timeout, only 1 try
is attempted.
This commit is contained in:
rajneeshksoni 2022-09-09 09:53:06 +05:30 committed by Sebastian Dröge
parent 62f76e1e8b
commit 45962eca1c
2 changed files with 2 additions and 2 deletions

View file

@ -852,7 +852,7 @@ impl ObjectImpl for S3Sink {
let retry_attempts = if value > request_timeout {
value / request_timeout
} else {
request_timeout / value
1
};
settings.retry_attempts = retry_attempts as u32;
}

View file

@ -383,7 +383,7 @@ impl ObjectImpl for S3Src {
let retry_attempts = if value > request_timeout {
value / request_timeout
} else {
request_timeout / value
1
};
settings.retry_attempts = retry_attempts as u32;
}