aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2022-04-28 20:56:32 -0500
committerJP Dillingham <jpdillingham@gmail.com>2022-04-28 20:56:32 -0500
commitafb0af902010c2a5c64a054a7f0be0f6f655695b (patch)
tree5e17e43676465cfd073cdd0bea6253e3e3673f0f /src
parentfbbb8b87b25f4add96f10099b91daedfe00c5f28 (diff)
downloadslskd-afb0af902010c2a5c64a054a7f0be0f6f655695b.tar.gz
remove disconnect handler
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Search/API/Hubs/SearchHub.cs10
1 files changed, 0 insertions, 10 deletions
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/.
// </copyright>
-using Microsoft.Extensions.Options;
-
namespace slskd.Search.API
{
using System;
@@ -46,7 +44,6 @@ namespace slskd.Search.API
/// <returns>The operation context.</returns>
public static Task BroadcastUpdateAsync(this IHubContext<SearchHub> 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