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

rss-bot: Added a hash to the end of the feed_file #845

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

anon1a7d
Copy link

This allows for more than one feed per domain name (netloc). Previously, only a single feed could be associated with a domain name as the feed_file kept in the cache (data-dir) was simply the domain name (netloc). Using shake128, added an 8 digit hash (4 bytes in hex) of the full URL to the end of the feed_file name.

Now can support https://example.com/site_one/feed.rss and https://example.com/site_two/feed.rss, etc.

The files in the data-dir for these two URLs will be as follows.

example.com-7778e2bd
example.com-52cfce4c

How did you test this PR?

Ran the modified code manually from a tmp environment (including a unique data-dir). Confirmed cached feed_files were as expected. Messages successfully sent to test stream under proper topics.

This allows for more than one feed per domain name (netloc).
@anon1a7d anon1a7d changed the title Added a hash to the end of the feed_file rss-bot: Added a hash to the end of the feed_file Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants