fix bug
Signed-off-by: jagger <cossjie@foxmail.com> Former-commit-id: 35f7cdd6445c7509399141af92dd8bb49a58413e
This commit is contained in:
parent
969fb1d832
commit
55cece2e7d
|
@ -2,6 +2,7 @@ package schedule
|
|||
|
||||
import (
|
||||
"context"
|
||||
"github.com/pkg/errors"
|
||||
"gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/storeLink"
|
||||
|
||||
"gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc"
|
||||
|
@ -28,7 +29,8 @@ func (l *ScheduleGetDatasetsLogic) ScheduleGetDatasets(req *types.AiDatasetsReq)
|
|||
resp = &types.AiDatasetsResp{}
|
||||
names, err := storeLink.GetDatasetsNames(l.ctx, l.svcCtx.Scheduler.AiService.AiCollectorAdapterMap[req.AdapterId])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
logx.Errorf("GetDatasetsNames err: %v", err)
|
||||
return nil, errors.New("网络异常,请稍后重试.")
|
||||
}
|
||||
resp.Datasets = names
|
||||
return resp, nil
|
||||
|
|
Loading…
Reference in New Issue