fix method names

This commit is contained in:
yggverse 2025-09-09 11:29:30 +03:00
parent d9edf977c7
commit 9a5040c1f5

View file

@ -357,7 +357,7 @@ fn list(state: &State, keyword: Option<&str>, page: Option<usize>) -> Result<Str
format::files(&i), format::files(&i),
state state
.scrape .scrape
.scrape(i.info_hash.0) .get(i.info_hash.0)
.map(|s| format!("{}{}{}", s.seeders, s.peers, s.leechers)) .map(|s| format!("{}{}{}", s.seeders, s.peers, s.leechers))
.unwrap_or_default() .unwrap_or_default()
)); ));
@ -432,7 +432,7 @@ fn info(state: &State, torrent: Torrent) -> Result<String> {
format::files(&i), format::files(&i),
state state
.scrape .scrape
.scrape(i.info_hash.0) .get(i.info_hash.0)
.map(|s| format!("{}{}{}", s.seeders, s.peers, s.leechers)) .map(|s| format!("{}{}{}", s.seeders, s.peers, s.leechers))
.unwrap_or_default() .unwrap_or_default()
)); ));