use zero-copy has_torrent method

This commit is contained in:
yggverse 2025-08-02 15:05:29 +03:00
parent 7afc7d8f90
commit 5edaf77a5a
2 changed files with 2 additions and 2 deletions

View file

@ -98,7 +98,7 @@ async fn main() -> Result<()> {
// convert to string once
let i = i.to_string();
// already indexed?
if database.torrent(&i)?.is_some() {
if database.has_torrent(&i)? {
continue;
}
if config.debug {