fix bug
Signed-off-by: jagger <cossjie@foxmail.com> Former-commit-id: 7ea30faf0152e15a9058fd8da894e5b6d993eb8d
This commit is contained in:
parent
4d97270321
commit
2f45fef202
|
@ -25,9 +25,11 @@ func NewSyncClusterLoadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *S
|
|||
|
||||
func (l *SyncClusterLoadLogic) SyncClusterLoad(req *types.SyncClusterLoadReq) error {
|
||||
if nil != req.ClusterLoadRecords {
|
||||
var param tracker.ClusterLoadRecord
|
||||
tool.Convert(req, ¶m)
|
||||
tracker.SyncClusterLoad(param)
|
||||
for _, record := range req.ClusterLoadRecords {
|
||||
var param tracker.ClusterLoadRecord
|
||||
tool.Convert(record, ¶m)
|
||||
tracker.SyncClusterLoad(param)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue