Skip to content

Commit

Permalink
dl printing
Browse files Browse the repository at this point in the history
  • Loading branch information
mh0lt committed Jun 8, 2024
1 parent 870f3fd commit a69b9ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion t.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func (t *Torrent) deleteReader(r *reader) {
// has been obtained, see Torrent.Info and Torrent.GotInfo.
func (t *Torrent) DownloadPieces(begin, end pieceIndex) {
fmt.Println("DPL", begin, end)
fmt.Println("DPL", "DONE")
defer fmt.Println("DPL", "DONE")
t.mu.Lock()
defer t.mu.Unlock()
t.downloadPiecesLocked(begin, end)
Expand Down
1 change: 1 addition & 0 deletions webseed-peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ func (ws *webseedPeer) requester(i int) {
ws.peer.requestState.Requests.Iterate(func(x RequestIndex) bool {
fmt.Println("RITR", "L", ws.peer.t.mu.locker, "NL", ws.peer.t.mu.nextlocker)
r := ws.peer.t.requestIndexToRequest(x, true)
fmt.Println("RITR", "DONE")
if _, ok := ws.activeRequests[r]; ok {
return true
}
Expand Down

0 comments on commit a69b9ea

Please sign in to comment.