[优化]设备数据上传并发处理,添加队列,以及并发数控制

This commit is contained in:
PandaX
2023-11-28 17:59:01 +08:00
parent 58341b0236
commit 287c8a1b05
8 changed files with 45 additions and 16 deletions

View File

@@ -12,7 +12,6 @@ type UdpClientT struct {
Addr *net.UDPAddr
}
// var UdpClient = make(map[string]*UdpClientT)
var UdpClient sync.Map
func Send(deviceId, msg string) error {