@@ -243,6 +243,7 @@ class TS3Lister : public IS3Lister {
243243
244244 TS3Lister (
245245 const IHTTPGateway::TPtr& httpGateway,
246+ const IHTTPGateway::TRetryPolicy::TPtr& retryPolicy,
246247 const TListingRequest& listingRequest,
247248 const TMaybe<TString>& delimiter,
248249 size_t maxFilesPerQuery,
@@ -265,7 +266,7 @@ class TS3Lister : public IS3Lister {
265266 NewPromise<TMaybe<TListingContext>>(),
266267 std::make_shared<TListEntries>(),
267268 IHTTPGateway::TWeakPtr (httpGateway),
268- GetHTTPDefaultRetryPolicy () ,
269+ retryPolicy ,
269270 CreateGuidAsString (),
270271 std::move (request),
271272 delimiter,
@@ -391,7 +392,7 @@ class TS3Lister : public IS3Lister {
391392 NewPromise<TMaybe<TListingContext>>(),
392393 std::make_shared<TListEntries>(),
393394 ctx.GatewayWeak ,
394- GetHTTPDefaultRetryPolicy () ,
395+ ctx. RetryPolicy ,
395396 CreateGuidAsString (),
396397 ctx.ListingRequest ,
397398 ctx.Delimiter ,
@@ -457,15 +458,16 @@ class TS3ParallelLimitedListerFactory : public IS3ListerFactory {
457458
458459 TFuture<NS3Lister::IS3Lister::TPtr> Make (
459460 const IHTTPGateway::TPtr& httpGateway,
461+ const IHTTPGateway::TRetryPolicy::TPtr& retryPolicy,
460462 const NS3Lister::TListingRequest& listingRequest,
461463 const TMaybe<TString>& delimiter,
462464 bool allowLocalFiles) override {
463465 auto acquired = Semaphore->AcquireAsync ();
464466 return acquired.Apply (
465- [ctx = SharedCtx, httpGateway, listingRequest, delimiter, allowLocalFiles](const auto & f) {
467+ [ctx = SharedCtx, httpGateway, retryPolicy, listingRequest, delimiter, allowLocalFiles](const auto & f) {
466468 return std::shared_ptr<NS3Lister::IS3Lister>(new TListerLockReleaseWrapper{
467469 NS3Lister::MakeS3Lister (
468- httpGateway, listingRequest, delimiter, allowLocalFiles, ctx),
470+ httpGateway, retryPolicy, listingRequest, delimiter, allowLocalFiles, ctx),
469471 std::make_unique<TAsyncSemaphore::TAutoRelease>(
470472 f.GetValue()->MakeAutoRelease())});
471473 });
@@ -507,13 +509,14 @@ class TS3ParallelLimitedListerFactory : public IS3ListerFactory {
507509
508510IS3Lister::TPtr MakeS3Lister (
509511 const IHTTPGateway::TPtr& httpGateway,
512+ const IHTTPGateway::TRetryPolicy::TPtr& retryPolicy,
510513 const TListingRequest& listingRequest,
511514 const TMaybe<TString>& delimiter,
512515 bool allowLocalFiles,
513516 TSharedListingContextPtr sharedCtx) {
514517 if (listingRequest.Url .substr (0 , 7 ) != " file://" ) {
515518 return std::make_shared<TS3Lister>(
516- httpGateway, listingRequest, delimiter, 1000 , std::move (sharedCtx));
519+ httpGateway, retryPolicy, listingRequest, delimiter, 1000 , std::move (sharedCtx));
517520 }
518521
519522 if (!allowLocalFiles) {
0 commit comments