优化API

This commit is contained in:
刘祥超
2020-11-02 22:14:45 +08:00
parent 229253898c
commit 0a2b2d9fe9

View File

@@ -163,7 +163,7 @@ func (this *Node) syncConfig(isFirstTime bool) error {
return errors.New("create rpc client failed: " + err.Error())
}
// TODO 这里考虑只同步版本号有变更的
configResp, err := rpcClient.NodeRPC().ComposeNodeConfig(rpcClient.Context(), &pb.ComposeNodeConfigRequest{})
configResp, err := rpcClient.NodeRPC().FindCurrentNodeConfig(rpcClient.Context(), &pb.FindCurrentNodeConfigRequest{})
if err != nil {
return errors.New("read config from rpc failed: " + err.Error())
}