diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-10-24 18:30:48 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2022-10-24 18:30:48 -0500 |
| commit | d614b962a6b0458e9e03c7a4404c680ddae304e9 (patch) | |
| tree | fbdcfdb14a21758caeaf4dbbe338c10a8f3c57bf /src/slskd/Network/API | |
| parent | 81c548029ebed89407c055d62ebec6a503bcdde6 (diff) | |
| download | slskd-d614b962a6b0458e9e03c7a4404c680ddae304e9.tar.gz | |
more refactoring
Diffstat (limited to 'src/slskd/Network/API')
| -rw-r--r-- | src/slskd/Network/API/Controllers/NetworkController.cs | 2 | ||||
| -rw-r--r-- | src/slskd/Network/API/Hubs/NetworkHub.cs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/slskd/Network/API/Controllers/NetworkController.cs b/src/slskd/Network/API/Controllers/NetworkController.cs index b1a71f34..e30d984c 100644 --- a/src/slskd/Network/API/Controllers/NetworkController.cs +++ b/src/slskd/Network/API/Controllers/NetworkController.cs @@ -112,7 +112,7 @@ namespace slskd.Network // pass the stream back to the network service, which will in turn pass it to the // upload service, and use it to feed data into the remote upload. await this call, // it will complete when the upload is complete. - await Network.HandleGetFileStreamResponse(id: guid, stream); + await Network.HandleFileStreamResponse(id: guid, stream); Log.Information("File upload of {Filename} ({Token}) from agent {Agent} complete", filename, token, agentName); return Ok(); diff --git a/src/slskd/Network/API/Hubs/NetworkHub.cs b/src/slskd/Network/API/Hubs/NetworkHub.cs index 7945a62b..32575e8d 100644 --- a/src/slskd/Network/API/Hubs/NetworkHub.cs +++ b/src/slskd/Network/API/Hubs/NetworkHub.cs @@ -97,7 +97,7 @@ namespace slskd.Network public void NotifyUploadFailed(Guid id, Exception exception) { - Network.NotifyFileStreamFailure(id, exception); + Network.NotifyFileStreamException(id, exception); } public void ReturnFileInfo(Guid id, bool exists, long length) @@ -108,7 +108,7 @@ namespace slskd.Network return; } - Network.HandleGetFileInfoResponse(record.Agent.Name, id, (exists, length)); + Network.HandleFileInfoResponse(record.Agent.Name, id, (exists, length)); } } }
\ No newline at end of file |
