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: 5 additions & 0 deletions cmd/downloader/downloader/downloader_grpc_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ func (s *GrpcServer) Download(ctx context.Context, request *proto_downloader.Dow
}
}

if it.TorrentHash == nil {
enriavil1 marked this conversation as resolved.
Show resolved Hide resolved
log.Info("Discarding torrent file with no hash")
continue
}

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