Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

checking if we build torrent file #4723

Merged
merged 13 commits into from
Jul 16, 2022
5 changes: 4 additions & 1 deletion cmd/downloader/downloader/downloader_grpc_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ func (s *GrpcServer) Download(ctx context.Context, request *proto_downloader.Dow
return nil, err
}
}
var hash metainfo.Hash
enriavil1 marked this conversation as resolved.
Show resolved Hide resolved
if it.TorrentHash != nil {
hash = Proto2InfoHash(it.TorrentHash)
}

hash := Proto2InfoHash(it.TorrentHash)
if _, ok := torrentClient.Torrent(hash); ok {
continue
}
Expand Down