change env var for bitswap

changed IPFS_TASK_WORKERS to IPFS_BITSWAP_TASK_WORKERS
This commit is contained in:
Jeromy Johnson 2015-04-19 13:10:43 -07:00
parent 16e04356b9
commit 43eeab9549

View File

@ -14,7 +14,7 @@ import (
var TaskWorkerCount = 16
func init() {
twc := os.Getenv("IPFS_TASK_WORKERS")
twc := os.Getenv("IPFS_BITSWAP_TASK_WORKERS")
if twc != "" {
n, err := strconv.Atoi(twc)
if err != nil {
@ -24,7 +24,7 @@ func init() {
if n > 0 {
TaskWorkerCount = n
} else {
log.Errorf("Invalid value of '%d' for IPFS_TASK_WORKERS", n)
log.Errorf("Invalid value of '%d' for IPFS_BITSWAP_TASK_WORKERS", n)
}
}
}