-
Notifications
You must be signed in to change notification settings - Fork 65
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
feat(config/searchLimit): Perform searches on indexers independently #566
Conversation
We're pretty cautious about adding config settings, so it might be better to default to this behavior than make it a setting if we do implement this, I'm not even sure what the benefit of not using this would be in a real use-case. Do you have an argument for why this should be an option and not the default behavior? Edit: Oh I see what you're doing, you're using an overall limit for total, and limiting per indexer. I think that would be more the way I would go... |
I agree, there is no practical reason not to make it default. I updated the changes so now searchLimit now applies per indexer rather than overall. |
4aedf26
to
c047542
Compare
Added a new feature explained here: #565 (comment) |
That seems to be out of the scope of your original PR? |
I can make a new issue and PR if necessary, but I added it on this branch as it needs the searchLimit changes. Also has the same motivation as the original so I thought it would be easier to just do it at all at once. |
Thanks for the contribution—I appreciate your initiative here and I'm glad you were able to find a solution that works for you. Ultimately, your use case seems to be pretty uncommon and I don't think it's worth the added complexity and maintenance burden for us to merge this PR as native functionality of cross-seed. If we hear about this issue more in the future, we'll revisit this decision. |
Closes: #565
Very simple change, I simply created a Map<indexerId, count> to keep track. Added to sample configs as well as an info log to at start of search if enabled, and verbose logs for search on each indexer. I've tested it and it works.
I have never written javascript and just wrote from my experience with other languages so please be careful.