diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2022-04-24 20:20:42 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2022-04-24 20:20:42 -0500 |
| commit | 54be459ca2a7c9ea9a7161256eb139d1302fc130 (patch) | |
| tree | 30ea4aebe0502fc68059e6d099ffaac2c4beb977 | |
| parent | efd8fd01f134d206071771b38a0aa61167817250 (diff) | |
| download | slskd-54be459ca2a7c9ea9a7161256eb139d1302fc130.tar.gz | |
resolve some warnings
| -rw-r--r-- | src/slskd/Application.cs | 3 | ||||
| -rw-r--r-- | src/slskd/Transfers/Uploads/UploadQueue.cs | 2 | ||||
| -rw-r--r-- | src/slskd/Transfers/Uploads/UploadService.cs | 19 | ||||
| -rw-r--r-- | src/slskd/Users/UserService.cs | 2 |
4 files changed, 22 insertions, 4 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs index 115d0b37..1064e56a 100644 --- a/src/slskd/Application.cs +++ b/src/slskd/Application.cs @@ -44,7 +44,7 @@ namespace slskd using slskd.Users; using Soulseek; using Soulseek.Diagnostics; - + public interface IApplication : IHostedService { public Task CheckVersionAsync(); @@ -892,7 +892,6 @@ namespace slskd private void State_OnChange((State Previous, State Current) state) { - //Log.Debug("State changed from {Previous} to {Current}", state.Previous.ToJson(), state.Current.ToJson()); _ = ApplicationHub.BroadcastStateAsync(state.Current); } diff --git a/src/slskd/Transfers/Uploads/UploadQueue.cs b/src/slskd/Transfers/Uploads/UploadQueue.cs index e5b8c5f5..de8cc031 100644 --- a/src/slskd/Transfers/Uploads/UploadQueue.cs +++ b/src/slskd/Transfers/Uploads/UploadQueue.cs @@ -199,7 +199,9 @@ namespace slskd.Transfers } } +#pragma warning disable S3241 // Methods should not return values that are never used private Upload Process() +#pragma warning restore S3241 // Methods should not return values that are never used { SyncRoot.Wait(); diff --git a/src/slskd/Transfers/Uploads/UploadService.cs b/src/slskd/Transfers/Uploads/UploadService.cs index 99f12df4..f88e80a8 100644 --- a/src/slskd/Transfers/Uploads/UploadService.cs +++ b/src/slskd/Transfers/Uploads/UploadService.cs @@ -1,4 +1,21 @@ -namespace slskd.Transfers.Uploads +// <copyright file="UploadService.cs" company="slskd Team"> +// Copyright (c) slskd Team. All rights reserved. +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see https://www.gnu.org/licenses/. +// </copyright> + +namespace slskd.Transfers.Uploads { /// <summary> /// Manages uploads. diff --git a/src/slskd/Users/UserService.cs b/src/slskd/Users/UserService.cs index aa2ae234..95fed12d 100644 --- a/src/slskd/Users/UserService.cs +++ b/src/slskd/Users/UserService.cs @@ -54,7 +54,7 @@ namespace slskd.Users // binding these events will cause multiple redundant round trips when initially watching a user // or when explicitly requesting via GetStatus/GetStatistics. this is wasteful, but there's no functional side effect. Client.UserStatisticsChanged += (_, userStatistics) => UpdateStatistics(userStatistics.Username, userStatistics.ToStatistics()); - Client.UserStatusChanged += (_, userStatus) => + Client.UserStatusChanged += (sender, userStatus) => { UpdateStatus(userStatus.Username, userStatus.ToStatus()); |
