Use math.MaxUint64, the more you know

This commit is contained in:
Matt Joiner 2015-03-30 23:08:43 +11:00
parent 1c6045bbf8
commit d05e63d094
1 changed files with 2 additions and 2 deletions

View File

@ -3,6 +3,7 @@ package main
import (
"flag"
"log"
"math"
"strings"
"github.com/anacrolix/libtorgo/metainfo"
@ -27,8 +28,7 @@ func main() {
flag.Parse()
ar := tracker.AnnounceRequest{
NumWant: -1,
// Go won't let me do uint64(-1), I'm sorry.
Left: 0xffffffffffffffff,
Left: math.MaxUint64,
}
for _, arg := range flag.Args() {
ts, err := argSpec(arg)