Commit 394bdee1 authored by Jeromy's avatar Jeromy

address comments from CR

parent 948633d4
......@@ -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)
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment