mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-24 20:07:45 +08:00
change env var for bitswap
changed IPFS_TASK_WORKERS to IPFS_BITSWAP_TASK_WORKERS
This commit is contained in:
parent
16e04356b9
commit
43eeab9549
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user