adjust params

This commit is contained in:
marvzhang
2020-03-08 18:38:09 +08:00
parent 6b29c8cc2b
commit ab33640a50
2 changed files with 4 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ spider:
task:
workers: 4
rpc:
workers: 16
workers: 4
other:
tmppath: "/tmp"
version: 0.4.7

View File

@@ -69,7 +69,7 @@ func RpcClientGetLang(nodeId string, langName string) (lang entity.Lang, err err
params := map[string]string{}
params["lang"] = langName
data, err := RpcClientFunc(nodeId, constants.RpcGetLang, params, 10)()
data, err := RpcClientFunc(nodeId, constants.RpcGetLang, params, 30)()
if err != nil {
return
}
@@ -101,7 +101,7 @@ func RpcClientInstallDep(nodeId string, lang string, depName string) (output str
params["lang"] = lang
params["dep_name"] = depName
data, err := RpcClientFunc(nodeId, constants.RpcInstallDep, params, 10)()
data, err := RpcClientFunc(nodeId, constants.RpcInstallDep, params, 60)()
if err != nil {
return
}
@@ -162,7 +162,7 @@ func RpcClientGetInstalledDepList(nodeId string, lang string) (list []entity.Dep
params := map[string]string{}
params["lang"] = lang
data, err := RpcClientFunc(nodeId, constants.RpcGetInstalledDepList, params, 10)()
data, err := RpcClientFunc(nodeId, constants.RpcGetInstalledDepList, params, 30)()
if err != nil {
return
}