diff --git a/backend/conf/config.yml b/backend/conf/config.yml index 1b724c42..f1443520 100644 --- a/backend/conf/config.yml +++ b/backend/conf/config.yml @@ -36,7 +36,7 @@ spider: task: workers: 4 rpc: - workers: 16 + workers: 4 other: tmppath: "/tmp" version: 0.4.7 diff --git a/backend/services/rpc.go b/backend/services/rpc.go index 1a422d3d..8b33a542 100644 --- a/backend/services/rpc.go +++ b/backend/services/rpc.go @@ -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 }