fix(lib): raise the search reply cap to 300 files

The cap of 150 was attributed to Nicotine+, whose default is in fact
300 (slskd's is 500). A reply now carries up to 300 matches.
This commit is contained in:
Michel de Graaf
2026-09-07 15:27:01 +02:00
parent 7c4d9e2c9a
commit e5d240a708
+3 -2
View File
@@ -88,8 +88,9 @@ pub const MAX_SEARCH_FILES: usize = 10_000;
///
/// A broad query against a big share would otherwise hand the whole index
/// to whoever typed it, on every such search that arrives. Nicotine+ sends
/// 150 by default; a searcher with more sources than that has plenty.
pub const MAX_SEARCH_REPLY_FILES: usize = 150;
/// 300 by default and slskd 500; a searcher with that many sources from one
/// peer has plenty.
pub const MAX_SEARCH_REPLY_FILES: usize = 300;
impl Search {
/// Store one peer's response, unless this search already holds enough.