-
Notifications
You must be signed in to change notification settings - Fork 27
Conversation
This is great @leafnode , thanks a lot! Will merge tomorrow when I'm back in coding mode ;-) |
response = new AzuriteQueueResponse(); | ||
response.addMetaProps(metaProps); | ||
response.addMetaProps(metaProps, queueLength); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@leafnode can you please use response.addHttpProperty('x-ms-approximate-messages-count', queueLength);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure! Actually, adding more parameters to the signature looked bad, but I wanted to keep this in one place and didn't have much time for deeper refactoring. But if adding it in another line is fine - I'm good with it.
Object.keys(metaProps).forEach((key) => { | ||
this.addHttpProperty(`x-ms-meta-${key}`, metaProps[key]); | ||
}); | ||
this.addHttpProperty(`x-ms-approximate-messages-count`, queueLength); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@leafnode and remove this line and switch back to original signature? Thanks!
Great, thanks a lot @leafnode ! Just merged and will be publishing as v1.8.1 soon. |
Cobos Franco, inc. |
Added feature from the queue API: returning queue length with the metadata.