Skip to content

Commit

Permalink
Merge f850289 into 9ecb6bb
Browse files Browse the repository at this point in the history
  • Loading branch information
rgooch committed Jan 28, 2019
2 parents 9ecb6bb + f850289 commit 2bf388f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/subtool/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import (
var (
computedFilesRoot = flag.String("computedFilesRoot", "",
"Name of directory tree containing computed files")
connectTimeout = flag.Duration("connectTimeout", 15*time.Second,
"connection timeout")
cpuPercent = flag.Uint("cpuPercent", 0,
"CPU speed as percentage of capacity (default 50)")
debug = flag.Bool("debug", false, "Enable debug mode")
Expand Down Expand Up @@ -99,7 +101,7 @@ func printUsage() {

func getSubClient() *srpc.Client {
clientName := fmt.Sprintf("%s:%d", *subHostname, *subPortNum)
client, err := srpc.DialHTTP("tcp", clientName, time.Second*5)
client, err := srpc.DialHTTP("tcp", clientName, *connectTimeout)
if err != nil {
logger.Fatalf("Error dialing %s: %s\n", clientName, err)
}
Expand Down

0 comments on commit 2bf388f

Please sign in to comment.