Skip to content

Commit

Permalink
chore: add todo to seeder
Browse files Browse the repository at this point in the history
We should handle timeouts errors, that have been added to the API
client.
  • Loading branch information
josecelano committed Feb 9, 2024
1 parent 2fc2016 commit 3d3fc2d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/console/commands/seeder/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d3fc2d

Please sign in to comment.