(untested) refactor code

This commit is contained in:
Lawrence, Rendall
2023-03-21 18:58:27 +03:00
parent de83f7cdcd
commit b956811e40
13 changed files with 129 additions and 144 deletions
-1
View File
@@ -57,7 +57,6 @@ func parseAnnounce(r *fasthttp.RequestCtx, opts ParseOptions) (*bittorrent.Annou
if len(infoHashes) > 1 {
return nil, errMultipleInfoHashes
}
// FIXME: make sure that we have a copy of InfoHash
request.InfoHash = infoHashes[0]
// Parse the PeerID from the request.