Skip to content

Commit 4a4a90a

Browse files
committed
fix feed rate limit
1 parent 8bea9d2 commit 4a4a90a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Source/FikaAmazonAPI/Services/FeedService.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public Feed GetFeed(string feedId) =>
8080
public async Task<Feed> GetFeedAsync(string feedId)
8181
{
8282
await CreateAuthorizedRequestAsync(FeedsApiUrls.GetFeed(feedId), RestSharp.Method.Get);
83-
var response = await ExecuteRequestAsync<Feed>(RateLimitType.Feed_CreateFeed);
83+
var response = await ExecuteRequestAsync<Feed>(RateLimitType.Feed_GetFeed);
8484
if (response != null)
8585
return response;
8686
return null;
@@ -144,7 +144,7 @@ public async Task<ProcessingReportMessage> GetFeedDocumentProcessingReportAsync(
144144
}
145145
return processingReport;
146146
}
147-
147+
148148
public ProcessingReportMessage GetFeedDocumentProcessingReport(FeedDocument feedDocument) =>
149149
Task.Run(() => GetFeedDocumentProcessingReportAsync(feedDocument)).ConfigureAwait(false).GetAwaiter().GetResult();
150150

@@ -156,7 +156,7 @@ public async Task<ProcessingReportMessage> GetFeedDocumentProcessingReportAsync(
156156
{
157157
var stream = await GetStreamFromUrlAsync(feedDocument.Url);
158158
if (feedDocument.CompressionAlgorithm.HasValue && (feedDocument.CompressionAlgorithm.Value == FeedDocument.CompressionAlgorithmEnum.GZIP))
159-
stream = new System.IO.Compression.GZipStream(stream, System.IO.Compression.CompressionMode.Decompress);
159+
stream = new System.IO.Compression.GZipStream(stream, System.IO.Compression.CompressionMode.Decompress);
160160
var xmlSerializer = new System.Xml.Serialization.XmlSerializer(typeof(FeedAmazonEnvelope));
161161
FeedAmazonEnvelope response = null;
162162

@@ -212,7 +212,7 @@ public async Task<string> SubmitFeedAsync(string feedContentOrFilePath, FeedType
212212

213213
//Uploading encoded invoice file
214214
_ = await PostFileDataAsync(feedCreate.Url, feedContentOrFilePath, contentType);
215-
215+
216216
CreateFeedSpecification createFeedSpecification = new CreateFeedSpecification()
217217
{
218218
FeedType = feedType.ToString(),

0 commit comments

Comments
 (0)