Skip to content

Commit

Permalink
feat: Disabled default ExponentialBackOffPolicy in message handler vi…
Browse files Browse the repository at this point in the history
…a StorageClientBuilder
  • Loading branch information
anuragsrivstv committed Sep 27, 2022
1 parent 931cab0 commit 62aec51
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public override StorageClient Build()
{
Validate();
var initializer = CreateServiceInitializer();
var service = new StorageService(initializer);
var service = new StorageService(initializer);
return new StorageClientImpl(service, EncryptionKey);
}

Expand All @@ -67,6 +67,7 @@ protected override BaseClientService.Initializer CreateServiceInitializer()
{
var initializer = base.CreateServiceInitializer();
initializer.GZipEnabled = GZipEnabled;
initializer.DefaultExponentialBackOffPolicy = ExponentialBackOffPolicy.None;
return initializer;
}

Expand All @@ -75,6 +76,7 @@ protected override async Task<BaseClientService.Initializer> CreateServiceInitia
{
var initializer = await base.CreateServiceInitializerAsync(cancellationToken).ConfigureAwait(false);
initializer.GZipEnabled = GZipEnabled;
initializer.DefaultExponentialBackOffPolicy = ExponentialBackOffPolicy.None;
return initializer;
}

Expand Down

0 comments on commit 62aec51

Please sign in to comment.