Remove search results limit in SearchResultHandler
This commit is contained in:
1 parent
0863e0723b
commit
e989bff9e3
1 file changed
+1
-2
@@ -33,7 +33,6 @@ import java.util.concurrent.CompletableFuture;
|
|||||||
*/
|
*/
|
||||||
public class SearchResultHandler extends AbstractAudioLoadResultHandler {
|
public class SearchResultHandler extends AbstractAudioLoadResultHandler {
|
||||||
private static final Logger logger = LogManager.getLogger(SearchResultHandler.class);
|
private static final Logger logger = LogManager.getLogger(SearchResultHandler.class);
|
||||||
private static final int SEARCH_RESULTS_LIMIT = 5;
|
|
||||||
|
|
||||||
private final String identifier;
|
private final String identifier;
|
||||||
private final Guild guild;
|
private final Guild guild;
|
||||||
@@ -80,7 +79,7 @@ public class SearchResultHandler extends AbstractAudioLoadResultHandler {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
List<Track> candidates = tracks.stream().limit(SEARCH_RESULTS_LIMIT).toList();
|
List<Track> candidates = tracks.stream().toList();
|
||||||
String searchId = PendingSearchResults.put(guild.getId(), candidates);
|
String searchId = PendingSearchResults.put(guild.getId(), candidates);
|
||||||
future.complete(new PlayOutcome.PendingSearch(searchId, candidates));
|
future.complete(new PlayOutcome.PendingSearch(searchId, candidates));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user