Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Pop Receipt #1066

Merged
merged 3 commits into from
May 29, 2024
Merged

Conversation

wsugarman
Copy link
Contributor

@wsugarman wsugarman commented Apr 18, 2024

Update the pop receipt for messages once they have been updated.

@nytian
Copy link
Collaborator

nytian commented May 15, 2024

@nytian nytian marked this pull request as ready for review May 15, 2024 19:27
@cgillum
Copy link
Member

cgillum commented May 28, 2024

Hi @wsugarman, just to confirm, is this PR ready to be merged?

Copy link
Collaborator

@davidmrdavid davidmrdavid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small question

@@ -59,10 +59,10 @@ await this.queueClient
this.stats.MessagesSent.Increment();
}

public async Task UpdateMessageAsync(QueueMessage queueMessage, TimeSpan visibilityTimeout, Guid? clientRequestId = null, CancellationToken cancellationToken = default)
public async Task<UpdateReceipt> UpdateMessageAsync(QueueMessage queueMessage, TimeSpan visibilityTimeout, Guid? clientRequestId = null, CancellationToken cancellationToken = default)
Copy link
Collaborator

@davidmrdavid davidmrdavid May 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wsugarman: is there a reason not to put the the popReceipt-updating logic here (in UpdateMessageAsync)? I think I'd rather have it here than sprinkled all throughout the callers, where I think it's more likely for folks to forget that they need to capture the output and manually update the receipt.

I think you could change the parameter types here to update the message object in-place

@nytian nytian merged commit 584babe into Azure:azure-storage-v12 May 29, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants