From afb0af902010c2a5c64a054a7f0be0f6f655695b Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Thu, 28 Apr 2022 20:56:32 -0500 Subject: remove disconnect handler --- src/slskd/Search/API/Hubs/SearchHub.cs | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src') diff --git a/src/slskd/Search/API/Hubs/SearchHub.cs b/src/slskd/Search/API/Hubs/SearchHub.cs index 5c9fc114..aaf9a287 100644 --- a/src/slskd/Search/API/Hubs/SearchHub.cs +++ b/src/slskd/Search/API/Hubs/SearchHub.cs @@ -15,8 +15,6 @@ // along with this program. If not, see https://www.gnu.org/licenses/. // -using Microsoft.Extensions.Options; - namespace slskd.Search.API { using System; @@ -46,7 +44,6 @@ namespace slskd.Search.API /// The operation context. public static Task BroadcastUpdateAsync(this IHubContext hub, Search search) { - // todo: throttle updates to at most 1 per 100ms or so return hub.Clients.All.SendAsync(SearchHubMethods.Update, search); } @@ -91,13 +88,6 @@ namespace slskd.Search.API { var searches = await Searches.ListAsync(); await Clients.Caller.SendAsync(SearchHubMethods.List, searches); - // todo: create buffer specific to this client - } - - public override Task OnDisconnectedAsync(Exception exception) - { - // todo: destroy buffer specific to this client - return Task.CompletedTask; } } } \ No newline at end of file -- cgit v1.2.3