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

@ -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" }

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 {