From 5edaf77a5aa6fe8cd3d71590eb35e62829fe5fcb Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 2 Aug 2025 15:05:29 +0300 Subject: [PATCH] use zero-copy `has_torrent` method --- Cargo.toml | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4775992..4a8d4f1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,5 +24,5 @@ yggtracker-redb = "0.1" [patch.crates-io] # yggtracker-redb = { path = "../yggtracker-redb" } -yggtracker-redb = { git = "https://github.com/YGGverse/yggtracker-redb.git", rev="e6cdd9c41df4a90c45bf3be2e605a2efb83585b7" } +yggtracker-redb = { git = "https://github.com/YGGverse/yggtracker-redb.git", rev="94a82fcd96f96a9966810ffc881e73ef610944c4" } librqbit = { git = "https://github.com/ikatson/rqbit.git", rev="b580a9610ae7c6eaacd305a3905f7e2d3202ca69" } \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index 61b6bb1..952a976 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 {