@@ -174,18 +174,12 @@ pub async fn get_torrent_handler(req: HttpRequest, app_data: WebAppData) -> Serv
174174
175175 let infohash = get_torrent_infohash_from_request ( & req) ?;
176176
177- println ! ( "infohash: {}" , infohash) ;
178-
179177 let torrent_listing = app_data. database . get_torrent_listing_from_infohash ( & infohash) . await ?;
180178
181179 let torrent_id = torrent_listing. torrent_id ;
182180
183- println ! ( "torrent_listing: {:#?}" , torrent_listing) ;
184-
185181 let category = app_data. database . get_category_from_id ( torrent_listing. category_id ) . await ?;
186182
187- println ! ( "category: {:#?}" , category) ;
188-
189183 let mut torrent_response = TorrentResponse :: from_listing ( torrent_listing) ;
190184
191185 torrent_response. category = category;
@@ -196,13 +190,9 @@ pub async fn get_torrent_handler(req: HttpRequest, app_data: WebAppData) -> Serv
196190
197191 torrent_response. files = app_data. database . get_torrent_files_from_id ( torrent_id) . await ?;
198192
199- println ! ( "torrent_response.files: {:#?}" , torrent_response. files) ;
200-
201193 if torrent_response. files . len ( ) == 1 {
202194 let torrent_info = app_data. database . get_torrent_info_from_infohash ( & infohash) . await ?;
203195
204- println ! ( "torrent_info: {:#?}" , torrent_info) ;
205-
206196 torrent_response
207197 . files
208198 . iter_mut ( )
@@ -215,8 +205,6 @@ pub async fn get_torrent_handler(req: HttpRequest, app_data: WebAppData) -> Serv
215205 . await
216206 . map ( |v| v. into_iter ( ) . flatten ( ) . collect ( ) ) ?;
217207
218- println ! ( "trackers: {:#?}" , torrent_response. trackers) ;
219-
220208 // add tracker url
221209 match user {
222210 Ok ( user) => {
0 commit comments