mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-09 10:18:04 +08:00
address comments from CR
This commit is contained in:
parent
3629d7d548
commit
16e04356b9
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user