We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b41488b commit c1fd866Copy full SHA for c1fd866
src/services/torrent.rs
@@ -367,14 +367,7 @@ impl Index {
367
// Add main tracker URL
368
match opt_user_id {
369
Some(user_id) => {
370
- // If no user owned tracker key can be found, use default tracker url
371
- // code-review: for downloading the torrent file it returns an error
372
- // instead of defaulting to the default tracker URL.
373
- let personal_announce_url = self
374
- .tracker_service
375
- .get_personal_announce_url(user_id)
376
- .await
377
- .unwrap_or(tracker_url);
+ let personal_announce_url = self.tracker_service.get_personal_announce_url(user_id).await?;
378
379
torrent_response.include_url_as_main_tracker(&personal_announce_url);
380
}
0 commit comments