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

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

@@ -1,6 +1,7 @@
package config
type Queue struct {
Enable bool `yaml:" enable"`
Num int64 `yaml:" num"` //并发
QueuePool int64 `yaml:"queue-pool"` //消息队列池
TaskNum int64 `yaml:"task-num"` //任务队列
ChNum int64 `yaml:"ch-num"` //并发数
}