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

Added contents of triggering message to signal_queue_size_change #46

Open
wants to merge 1 commit into
base: 2.1
Choose a base branch
from

Conversation

tsaubergine
Copy link
Member

Add the DCCL message that triggers the queue size change, if one exists. For a shrinking queue this is the message that was just popped, for a growing queue this is the message that was just pushed.

Rather than modify the signature of signal_queue_size_changed, I added this as an additional optional field to the QueueSize message.

@glgrobe Could you please review and see if this fits your needs.

This block of the Queue3 unit test shows how to extract the encoded message:
https://github.com/GobySoft/goby/compare/2.1-queue-size-add-encoded-message?expand=1#diff-0846765b1bb6e76a7fed8bdf73a334e9R203

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.

1 participant