Skip to content

Commit

Permalink
remove printers
Browse files Browse the repository at this point in the history
  • Loading branch information
mh0lt committed Jul 18, 2024
1 parent 92c0e1e commit 9c12e6b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions t.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package torrent

import (
"context"
"fmt"
"runtime"
"strconv"
"strings"
Expand Down Expand Up @@ -218,9 +217,6 @@ func (t *Torrent) DownloadPieces(begin, end pieceIndex) {

name := t.Name()

Check failure on line 218 in t.go

View workflow job for this annotation

GitHub Actions / test-386 (1.21)

name declared and not used

Check failure on line 218 in t.go

View workflow job for this annotation

GitHub Actions / test-386 (1.21)

name declared and not used

Check failure on line 218 in t.go

View workflow job for this annotation

GitHub Actions / test-benchmarks (1.21)

name declared and not used

Check failure on line 218 in t.go

View workflow job for this annotation

GitHub Actions / test-benchmarks (1.21)

name declared and not used

Check failure on line 218 in t.go

View workflow job for this annotation

GitHub Actions / test (1.21, windows-latest)

name declared and not used

Check failure on line 218 in t.go

View workflow job for this annotation

GitHub Actions / test (1.21, windows-latest)

name declared and not used

Check failure on line 218 in t.go

View workflow job for this annotation

GitHub Actions / build-wasm (1.21)

name declared and not used

Check failure on line 218 in t.go

View workflow job for this annotation

GitHub Actions / test (1.21, macos-latest)

name declared and not used

Check failure on line 218 in t.go

View workflow job for this annotation

GitHub Actions / test (1.21, macos-latest)

name declared and not used

Check failure on line 218 in t.go

View workflow job for this annotation

GitHub Actions / test (1.21, ubuntu-latest)

name declared and not used

Check failure on line 218 in t.go

View workflow job for this annotation

GitHub Actions / test (1.21, ubuntu-latest)

name declared and not used

Check failure on line 218 in t.go

View workflow job for this annotation

GitHub Actions / bench (1.21)

name declared and not used

Check failure on line 218 in t.go

View workflow job for this annotation

GitHub Actions / bench (1.21)

name declared and not used

fmt.Println("DL0", name)
defer fmt.Println("DL", name, "DONE")

mu := sync.RWMutex{}
changes := map[pieceIndex]struct{}{}
haveTrigger := false
Expand Down Expand Up @@ -250,7 +246,6 @@ func (t *Torrent) DownloadPieces(begin, end pieceIndex) {
storage := piece.Storage()

if completion.Complete {
fmt.Println("DL1", name, "P", i, "COMPLETE")
return nil
}

Expand All @@ -270,8 +265,6 @@ func (t *Torrent) DownloadPieces(begin, end pieceIndex) {
mu.Unlock()
}

fmt.Println("DL3", name, "P", i, "INCOMPLETE", checkCompletion, failedHashes)

if piece.priority.Raise(PiecePriorityNormal) {
pendingChanged := t.updatePiecePriorityNoTriggers(i, true)

Expand Down

0 comments on commit 9c12e6b

Please sign in to comment.