From: Matt Joiner Date: Wed, 3 Jun 2015 03:31:27 +0000 (+1000) Subject: cmd/torrent-pick: gofmt and sortimports X-Git-Tag: v1.0.0~1161 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=ca27d431f4e41e6814d643cf3ec129fb4941e686;p=btrtrc.git cmd/torrent-pick: gofmt and sortimports --- diff --git a/cmd/torrent-pick/main.go b/cmd/torrent-pick/main.go index 3b64152a..6a6a90e1 100644 --- a/cmd/torrent-pick/main.go +++ b/cmd/torrent-pick/main.go @@ -2,18 +2,17 @@ package main import ( + "bufio" "fmt" + "io" + "io/ioutil" "log" "net" "net/http" _ "net/http/pprof" "os" - "io" - "io/ioutil" "strings" "time" - "bufio" - _ "github.com/anacrolix/envpprof" "github.com/dustin/go-humanize" @@ -126,7 +125,6 @@ func main() { }) defer client.Close() - dstName := dstFileName(rootGroup.Pick) f, err := os.Create(dstName) @@ -165,7 +163,7 @@ func main() { <-t.GotInfo() files := t.Files() for _, file := range files { - if file.Path() == rootGroup.Pick { + if file.Path() == rootGroup.Pick { log.Printf("Downloading file: %s", file.Path()) @@ -178,7 +176,6 @@ func main() { }() } - ticker := time.NewTicker(time.Second) waitDone: for {