diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-09-22 17:10:51 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2024-09-22 17:10:51 -0500 |
| commit | cc0c9ee32b87b2d2937fce90a55afb7f875b315e (patch) | |
| tree | ac5037a1a41405d5e78332edfed47768f99a44ad /src/slskd/Events | |
| parent | c919538d3ca45b9ab5cf656c71deb8f2f4b30846 (diff) | |
| download | slskd-cc0c9ee32b87b2d2937fce90a55afb7f875b315e.tar.gz | |
GetPage() isn't async
Diffstat (limited to 'src/slskd/Events')
| -rw-r--r-- | src/slskd/Events/EventService.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/slskd/Events/EventService.cs b/src/slskd/Events/EventService.cs index 7f09010f..7a70cf05 100644 --- a/src/slskd/Events/EventService.cs +++ b/src/slskd/Events/EventService.cs @@ -20,7 +20,6 @@ namespace slskd.Events; using System; using System.Collections.Generic; using System.Linq; -using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using Serilog; @@ -49,7 +48,7 @@ public class EventService /// <returns>The retrieved list.</returns> /// <exception cref="ArgumentOutOfRangeException">Thrown when the specified <paramref name="offset"/> is less than zero.</exception> /// <exception cref="ArgumentOutOfRangeException">Thrown when the specified <paramref name="limit"/> is zero.</exception> - public virtual async Task<IReadOnlyCollection<EventRecord>> Get(int offset = 0, int limit = 100) + public virtual IReadOnlyCollection<EventRecord> GetPage(int offset = 0, int limit = 100) { if (offset < 0) { |
