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

split out meta feed shuffling into helpers #59

Closed
wants to merge 4 commits into from
Closed

Conversation

mixmix
Copy link
Member

@mixmix mixmix commented Feb 12, 2023

Was reading over code, and found the index.js file overwhelming. Split out functions that were meta-feed related into a single file, so the API parts of the code were clearer/ easier to find.

I also added a function drainOne because the "take + drain" pattern looks dangerous to me - if someone changes that take(1) at any point then you are gonna get multiple calls of cb, which would create weird / bad bugs

index.js Outdated Show resolved Hide resolved
@mixmix
Copy link
Member Author

mixmix commented Feb 16, 2023

Ready for review again @Powersource

lib/prune-publish.js Outdated Show resolved Hide resolved
@Powersource Powersource mentioned this pull request Feb 23, 2023
@Powersource
Copy link
Collaborator

replaced by #66

@Powersource Powersource deleted the meta-feed-helpers branch February 23, 2023 14:49
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.

None yet

3 participants