Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
dudikeleti committed Jan 17, 2024
1 parent 3bd7f28 commit dfc53c4
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,11 @@ public async Task<bool> SendBatchAsync(ArraySegment<byte> symbols)

while (retries < maxRetries)
{
using var response = await multipartRequest.PostAsync(
new MultipartFormItem("file", MimeTypes.Json, "file.json", symbols),
new MultipartFormItem("event", MimeTypes.Json, "event.json", _eventMetadata)).
using var response = await multipartRequest.PostAsync(new MultipartFormItem[]
{
new("file", MimeTypes.Json, "file.json", symbols),
new("event", MimeTypes.Json, "event.json", _eventMetadata)
}).
ConfigureAwait(false);

if (response.StatusCode is >= 200 and <= 299)
Expand Down

0 comments on commit dfc53c4

Please sign in to comment.