Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Truncate visiblityTimeout when updating QueueMessage #1053

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ public static StorageRequestMessage UpdateMessage(Uri uri, int? timeout, string
builder.Add(Constants.QueryConstants.PopReceipt, popReceipt);
if (visibilityTimeout != null)
{
builder.Add(Constants.QueryConstants.VisibilityTimeout, visibilityTimeout.Value.TotalSeconds.ToString());
var totalSeconds = (long) visibilityTimeout.Value.TotalSeconds;
builder.Add(Constants.QueryConstants.VisibilityTimeout, totalSeconds.ToString());
}
else
{
Expand Down