Skip to content

Commit

Permalink
Make sure to send with zero visibility timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
yaroslav-tykhonchuk committed Dec 14, 2023
1 parent 383c6f3 commit a5f4d03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AzureBatchQueue/MessageQueue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public async Task Send(T item, TimeSpan? visibilityTimeout = null, CancellationT
{
var payload = await Payload(item, ct: ct);

await queue.SendMessageAsync(new BinaryData(payload.Data), visibilityTimeout, null, ct);
await queue.SendMessageAsync(new BinaryData(payload.Data), visibilityTimeout ?? TimeSpan.Zero, null, ct);
}

async Task<Payload> Payload(T item, string? blobName = null, CancellationToken ct = default)
Expand Down

0 comments on commit a5f4d03

Please sign in to comment.