diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-10-08 18:04:37 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2022-10-08 18:04:37 -0500 |
| commit | 5203788c41d652d17f67c3c45658b289a6acf380 (patch) | |
| tree | 09005a29841dacf2df42f3c5161dc6af5281ed2c /src | |
| parent | 0422cdddf04d29edb50bf18f74f2697ca25ad47e (diff) | |
| download | slskd-5203788c41d652d17f67c3c45658b289a6acf380.tar.gz | |
agent auth and registration
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Integrations/FTP/FTPService.cs | 2 | ||||
| -rw-r--r-- | src/slskd/Transfers/Uploads/UploadService.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Integrations/FTP/FTPService.cs b/src/slskd/Integrations/FTP/FTPService.cs index 32b8b253..11fa9709 100644 --- a/src/slskd/Integrations/FTP/FTPService.cs +++ b/src/slskd/Integrations/FTP/FTPService.cs @@ -73,7 +73,7 @@ namespace slskd.Integrations.FTP await Retry.Do( task: () => AttemptUploadAsync(filename), isRetryable: (attempts, ex) => true, - onFailure: (attempts, ex) => Log.LogInformation("Failed attempt {Attempts} to upload {Filename} to FTP: {Message}", attempts, fileAndParentDirectory, ex.Message), + onFailure: (attempts, ex) => Log.LogInformation("Failed attempt #{Attempts} to upload {Filename} to FTP: {Message}", attempts, fileAndParentDirectory, ex.Message), maxAttempts: FtpOptions.RetryAttempts, maxDelayInMilliseconds: 30000); } diff --git a/src/slskd/Transfers/Uploads/UploadService.cs b/src/slskd/Transfers/Uploads/UploadService.cs index 8c7eaffa..5d49c3e1 100644 --- a/src/slskd/Transfers/Uploads/UploadService.cs +++ b/src/slskd/Transfers/Uploads/UploadService.cs @@ -220,7 +220,7 @@ namespace slskd.Transfers.Uploads //using var stream = new FileStream(fileInfo.FullName, FileMode.Open, FileAccess.Read); - var (stream, completion) = await Agents.GetFileStream(filename); + var (stream, completion) = await Agents.GetUpload("any", filename); var completedTransfer = await Client.UploadAsync( username, |
