address comments from CR

This commit is contained in:
Jeromy 2015-04-19 11:19:51 -07:00
parent 3629d7d548
commit 16e04356b9

View File

@ -18,9 +18,14 @@ func init() {
if twc != "" {
n, err := strconv.Atoi(twc)
if err != nil {
log.Error(err)
return
}
TaskWorkerCount = n
if n > 0 {
TaskWorkerCount = n
} else {
log.Errorf("Invalid value of '%d' for IPFS_TASK_WORKERS", n)
}
}
}