From 6c196882bb95b2216c81adb47fda91193f1d8ad8 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 30 Dec 2023 18:47:10 -0600 Subject: add todos --- src/slskd/Application.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs index 5c926644..59aa1d40 100644 --- a/src/slskd/Application.cs +++ b/src/slskd/Application.cs @@ -478,6 +478,12 @@ namespace slskd return Task.FromException(new DownloadEnqueueException($"File not shared.")); } + // todo: determine the user's group + // todo: get limit config for that group + // todo: if limits have been set, retrieve all of the user's transfers for the last week, including those currently in the queue + // todo: determine if any of the configured limits have been met or exceeded + // todo: if limits met or exceeded, return Task.FromException(new DownloadEnqueueException($"Limit(s) exceeded."); + return Transfers.Uploads.EnqueueAsync(username, filename); } -- cgit v1.2.3