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

Allow sync subs to allow m.Respond with auto-unsub #489

Merged
merged 1 commit into from
Jul 11, 2019

Conversation

derekcollison
Copy link
Member

Resolves #486

Signed-off-by: Derek Collison [email protected]

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 92.31% when pulling 8509117 on sync_respond into 6de9666 on master.

Copy link
Member

@kozlovic kozlovic left a comment

Choose a reason for hiding this comment

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

LGTM but I really wonder why you did not consider simply adding the connection as a private field to the Msg structure (which would be immutably set when creating the message in processMsg). This is adding 8 bytes to a structure, but that should not be a problem unless users store lots of them in mem.

@derekcollison
Copy link
Member Author

I try to be aware of creating allocations in things with greater N probabilities.

msgs > subs > connections

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.

Respond cannot be used with autounsub
3 participants