cmd/storj-sim: fix 32bit code
Change-Id: Ieec74f2a8ed1a207e7deff0f9072c1243cb1e3be
This commit is contained in:
parent
3c77825b19
commit
5b6fcfb725
@ -6,6 +6,7 @@ package main
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"math"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
@ -132,7 +133,7 @@ func main() {
|
||||
target := args[0]
|
||||
|
||||
if *retries <= 0 {
|
||||
*retries = 1 << 31
|
||||
*retries = math.MaxInt32
|
||||
}
|
||||
for try := 0; try < *retries; try++ {
|
||||
if tryConnect(target) {
|
||||
|
Loading…
Reference in New Issue
Block a user