diff options
Diffstat (limited to 'src/slskd/Shares/ShareService.cs')
| -rw-r--r-- | src/slskd/Shares/ShareService.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/slskd/Shares/ShareService.cs b/src/slskd/Shares/ShareService.cs index 6068a744..ee63f1bc 100644 --- a/src/slskd/Shares/ShareService.cs +++ b/src/slskd/Shares/ShareService.cs @@ -343,8 +343,9 @@ namespace slskd.Shares /// Searches the cache for the specified <paramref name="query"/> and returns the matching files. /// </summary> /// <param name="query">The query for which to search.</param> + /// <param name="limit">An optional row limit.</param> /// <returns>The matching files.</returns> - public Task<IEnumerable<File>> SearchAsync(SearchQuery query) + public Task<IEnumerable<File>> SearchAsync(SearchQuery query, int? limit = null) { var results = AllRepositories.SelectMany(r => r.Search(query)); |
