优化代码

This commit is contained in:
刘祥超
2022-09-11 19:03:53 +08:00
parent 4ca57fb99c
commit 80729935b6
2 changed files with 7 additions and 5 deletions

View File

@@ -483,7 +483,7 @@ func (this *Node) syncConfig(taskVersion int64) error {
}
// 获取同步任务
nodeCtx := rpcClient.Context()
var nodeCtx = rpcClient.Context()
// TODO 这里考虑只同步版本号有变更的
configResp, err := rpcClient.NodeRPC.FindCurrentNodeConfig(nodeCtx, &pb.FindCurrentNodeConfigRequest{