Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 7ea30faf0152e15a9058fd8da894e5b6d993eb8d
This commit is contained in:
jagger 2024-06-06 20:59:58 +08:00
parent 4d97270321
commit 2f45fef202
1 changed files with 5 additions and 3 deletions

View File

@ -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, &param)
tracker.SyncClusterLoad(param)
for _, record := range req.ClusterLoadRecords {
var param tracker.ClusterLoadRecord
tool.Convert(record, &param)
tracker.SyncClusterLoad(param)
}
}
return nil
}