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

Store QuoteEngine listeners in a Set instead of a List #20

Open
486dx33 opened this issue May 1, 2016 · 0 comments
Open

Store QuoteEngine listeners in a Set instead of a List #20

486dx33 opened this issue May 1, 2016 · 0 comments

Comments

@486dx33
Copy link

486dx33 commented May 1, 2016

com.sumzerotrading.marketdata.QuoteEngine stores listeners in Lists. When subscribing to Level1 and Level2 quotes and reusing the same listener, it could be added more than once to the List, and would receive the same quote multiple times.

Using a Set would solve this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants