From 5203788c41d652d17f67c3c45658b289a6acf380 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 8 Oct 2022 18:04:37 -0500 Subject: agent auth and registration --- src/slskd/Integrations/FTP/FTPService.cs | 2 +- src/slskd/Transfers/Uploads/UploadService.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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, -- cgit v1.2.3