Skip to content

Commit

Permalink
优化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
smthing committed Jun 4, 2024
1 parent 0e62d78 commit 70f390a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/core/batch_send.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ func tryReadNewValues(deviceId string, points []plugin.PointData) {
}
readPoints = append(readPoints, p)
}
if len(readPoints) == 0 {
return
}
//延迟100毫秒触发读操作
go func(deviceId string, readPoints []plugin.PointData) {
i := 0
Expand Down

0 comments on commit 70f390a

Please sign in to comment.