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

Conversation

marstr
Copy link
Member

@marstr marstr commented Jan 14, 2022

The server will reject requests that do not use an integer value of seconds for visiblity. The AddMessage method already addresses this by using a long number of seconds, but UpdateMessage takes a TimeSpan and will include fractional seconds allowing for requests that will always be rejected. This PR addresses the problem by truncating any fractional seconds when creating a Queue request.

The server will reject requests that do not use an integer value of
seconds for visiblity. The AddMessage method already addresses this
by using a `long` number of seconds, but UpdateMessage takes a TimeSpan
and will include fractional seconds allowing for requests that will
always be rejected.
@marstr marstr changed the base branch from master to dev January 14, 2022 21:34
@marstr marstr changed the base branch from dev to master January 14, 2022 21:36
@marstr
Copy link
Member Author

marstr commented Jan 14, 2022

Side note - it looks like CONTRIBUTING.md is out of date. dev and dev_breaking are considerably behind the default branch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant