From 3d3fc2dc553e2e4d1f7b833a78d95a7c7ea1b0d0 Mon Sep 17 00:00:00 2001 From: Jose Celano Date: Fri, 9 Feb 2024 17:11:58 +0000 Subject: [PATCH] chore: add todo to seeder We should handle timeouts errors, that have been added to the API client. --- src/console/commands/seeder/api.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/console/commands/seeder/api.rs b/src/console/commands/seeder/api.rs index 0af8e969..5ddee1d7 100644 --- a/src/console/commands/seeder/api.rs +++ b/src/console/commands/seeder/api.rs @@ -35,6 +35,9 @@ pub async fn upload_torrent(client: &Client, upload_torrent_form: UploadTorrentM add_category(client, &upload_torrent_form.category).await; } + // todo: if we receive timeout error we should retry later. Otherwise we + // have to restart the seeder manually. + let response = client .upload_torrent(upload_torrent_form.into()) .await