-
Notifications
You must be signed in to change notification settings - Fork 86
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
Bug/subscribing to channel and pattern doubles messages in channel subscriber #950
Conversation
…e same channel would send a message twice to the channel listener.
@arturaz does this occur with only one subscription to channel "foo:bar" ? |
No.
Lettuce just notifies all of the listeners with all events that it receives, it has no idea what's the intent of the listener. If you subscribed to a channel and a pattern matching the same channel, both methods will get invoked in the
This seems like a bug in redis4cats to me. |
…cribing-to-channel-and-pattern-doubles-messages-in-channel-subscriber
Hi. Is there a reason why this does not get merged? |
@arturaz Hey , sorry I've been out a bit the past few weeks. |
WDYM? I wrote a test that fails if the code change is not there. |
I have noticed that if you:
The messages sent to "foo:bar" will get delivered once to the "foo:*" stream and TWICE to the "foo:bar" stream.
This is a fix for that.