diff options
| author | JP Dillingham <jp@dillingham.me> | 2023-12-30 18:47:10 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2023-12-30 18:47:10 -0600 |
| commit | 6c196882bb95b2216c81adb47fda91193f1d8ad8 (patch) | |
| tree | 870413ced0b338f94129f357dad1cd162c74a766 /src | |
| parent | 71d8972ecda9664cfeb4788609e23d7dd9752f92 (diff) | |
| download | slskd-6c196882bb95b2216c81adb47fda91193f1d8ad8.tar.gz | |
add todos
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Application.cs | 6 |
1 files changed, 6 insertions, 0 deletions
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); } |
