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

Multistream: unsubscribing using publisher mid is not working with string_ids set #2617

Closed
isnumanagic opened this issue Apr 2, 2021 · 3 comments

Comments

@isnumanagic
Copy link
Contributor

isnumanagic commented Apr 2, 2021

Hi,
On multistream branch, sending unsubscribe request with feed + mid fields when using string_ids does not seem to be working. After digging through the code, it seems that case is only covered when string_ids is set to false, even though that should not be a problem. Here is the problematic conditional:

} else if(feed_id > 0) {

@isnumanagic
Copy link
Contributor Author

feed_id is only set when string_ids is set to false, as seen here:

feed_id = json_integer_value(feed);

@lminiero
Copy link
Member

lminiero commented Apr 2, 2021

Good catch, it's very likely that this is one of the leftovers when we merged the support for string identifiers from master. I'll have a look and fix it.

@lminiero
Copy link
Member

lminiero commented Apr 2, 2021

The above commit should fix it: I found a few other parts where it needed the fix too.

@lminiero lminiero closed this as completed Apr 2, 2021
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

No branches or pull requests

2 participants