From cc0c9ee32b87b2d2937fce90a55afb7f875b315e Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 22 Sep 2024 17:10:51 -0500 Subject: GetPage() isn't async --- src/slskd/Events/EventService.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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 /// The retrieved list. /// Thrown when the specified is less than zero. /// Thrown when the specified is zero. - public virtual async Task> Get(int offset = 0, int limit = 100) + public virtual IReadOnlyCollection GetPage(int offset = 0, int limit = 100) { if (offset < 0) { -- cgit v1.2.3