diff --git a/Apps.Contentful/Api/ContentfulClient.cs b/Apps.Contentful/Api/ContentfulClient.cs index 5e48f44..1729f1f 100644 --- a/Apps.Contentful/Api/ContentfulClient.cs +++ b/Apps.Contentful/Api/ContentfulClient.cs @@ -4,7 +4,6 @@ using Contentful.Core; using Contentful.Core.Configuration; using Contentful.Core.Errors; -using Contentful.Core.Models; using Newtonsoft.Json; using Polly; using Polly.Retry; @@ -14,18 +13,18 @@ namespace Apps.Contentful.Api; public class ContentfulClient : ContentfulManagementClient { private const int Limit = 100; - private const int RetryCount = 5; + private const int RetryCount = 7; private readonly AsyncRetryPolicy _retryPolicy; public ContentfulClient(IEnumerable creds, string? environment) - : base(new HttpClient { Timeout=TimeSpan.FromMinutes(5)}, new ContentfulOptions + : base(new HttpClient { Timeout = TimeSpan.FromMinutes(5) }, new ContentfulOptions { ManagementApiKey = creds.First(p => p.KeyName == "Authorization").Value, SpaceId = creds.First(p => p.KeyName == "spaceId").Value, Environment = environment, ManagementBaseUrl = creds.First(p => p.KeyName == CredNames.BaseUrl).Value + "/spaces/", - MaxNumberOfRateLimitRetries = RetryCount, + MaxNumberOfRateLimitRetries = RetryCount, }) { _retryPolicy = Policy diff --git a/Apps.Contentful/Apps.Contentful.csproj b/Apps.Contentful/Apps.Contentful.csproj index 3d2ec88..5d64138 100644 --- a/Apps.Contentful/Apps.Contentful.csproj +++ b/Apps.Contentful/Apps.Contentful.csproj @@ -6,7 +6,7 @@ enable Contentful The headless content management system - 1.8.8 + 1.8.9 Apps.Contentful