diff options
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, |
