aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-10-08 18:04:37 -0500
committerJP Dillingham <jp@dillingham.me>2022-10-08 18:04:37 -0500
commit5203788c41d652d17f67c3c45658b289a6acf380 (patch)
tree09005a29841dacf2df42f3c5161dc6af5281ed2c /src
parent0422cdddf04d29edb50bf18f74f2697ca25ad47e (diff)
downloadslskd-5203788c41d652d17f67c3c45658b289a6acf380.tar.gz
agent auth and registration
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Integrations/FTP/FTPService.cs2
-rw-r--r--src/slskd/Transfers/Uploads/UploadService.cs2
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,