Skip to content

Commit

Permalink
feat: 完善项目
Browse files Browse the repository at this point in the history
  • Loading branch information
godLei6 committed Oct 9, 2024
1 parent f1b5053 commit 5f40c22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sdk/service/protocol/lightProtocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func NewLightProtocol(c conf.EventConf, pi *dm.ProtocolInfo, pc *LightProtocolCo
}

func (p *LightProtocol) Start() error {
ctx := context.Background()
ctx := ctxs.WithRoot(context.Background())
_, err := p.ProtocolM.ProtocolInfoCreate(ctx, p.Pi) //初始化协议
if err != nil && !errors.Cmp(errors.Fmt(err), errors.Duplicate) {
logx.Must(err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ func (l *SendMessageToDevicesLogic) PushMessageToDevices(jobInfo *relationDB.DmO
return nil
}

deviceList, err := relationDB.NewOtaFirmwareDeviceRepo(l.ctx).FindByFilter(l.ctx, relationDB.OtaFirmwareDeviceFilter{
deviceList, err := stores.WithNoDebug(l.ctx, relationDB.NewOtaFirmwareDeviceRepo).FindByFilter(l.ctx, relationDB.OtaFirmwareDeviceFilter{
FirmwareID: jobInfo.FirmwareID,
JobID: jobInfo.ID,
ProductID: firmware.ProductID,
Expand Down

0 comments on commit 5f40c22

Please sign in to comment.