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

Only call the news handler once for a single message #693

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

gnvk
Copy link
Contributor

@gnvk gnvk commented Mar 28, 2023

Caused by #691

@gnvk gnvk requested a review from haxdds as a code owner March 28, 2023 05:08
@gnvk gnvk force-pushed the fix/news-dispatch branch from 6b6f027 to 18306de Compare March 28, 2023 05:08
@haxdds haxdds merged commit a7e23c6 into master Mar 28, 2023
@haxdds haxdds deleted the fix/news-dispatch branch March 28, 2023 13:59
@fumoboy007
Copy link
Contributor

Isn’t this not the desired behavior?

Consider the case where a caller registers one handler for one symbol and a different handler for another symbol. If there is a news article that is related to both symbols, only one of the handlers would be called due to this change.

@fumoboy007
Copy link
Contributor

I think we should still try to call all of the handlers but avoid calling the same handler twice.

@gnvk
Copy link
Contributor Author

gnvk commented Mar 31, 2023

@fumoboy007 👍 #694

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.

3 participants