修复创建设备无法回调驱动bug
parent
25ad18da2a
commit
ad9e138d8c
|
@ -162,6 +162,9 @@ func (p *deviceApp) AddDevice(ctx context.Context, req dtos.DeviceAddRequest) (s
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
go func() {
|
||||||
|
p.CreateDeviceCallBack(insertDevice)
|
||||||
|
}()
|
||||||
return id, nil
|
return id, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue