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

fix add_feed_ids bug #55

Merged
merged 1 commit into from
Feb 22, 2024
Merged

fix add_feed_ids bug #55

merged 1 commit into from
Feb 22, 2024

Conversation

cctdaniel
Copy link
Contributor

@cctdaniel cctdaniel commented Feb 22, 2024

there is a current duplicate bug with add_feed_ids where if you add multiple duplicate ids, pending_feed_ids will result in duplicate ids as explained here #54 (comment)

self.feed_ids = list(set(self.feed_ids).union(new_feed_ids_set))

# update self.pending_feed_ids with only those IDs that are truly new
self.pending_feed_ids = list(set(self.pending_feed_ids).union(new_feed_ids_set))
Copy link
Contributor

Choose a reason for hiding this comment

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

i guess this is just making sure no duplicates in pending_feed_ids? I don't think it matters too much bc there's an implicit redundancy check at the rust websocket level, but this is fine

@cctdaniel cctdaniel merged commit 8d671af into main Feb 22, 2024
1 check passed
@cctdaniel cctdaniel deleted the add-feed-ids-bug branch February 22, 2024 03:38
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.

2 participants