Skip to content

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
@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