admin 页面 MQTT 服务状态增加去重队列长度显示

This commit is contained in:
2026-06-30 12:18:40 +08:00
parent 4782e84c15
commit 01c7275763
5 changed files with 20 additions and 2 deletions
+6
View File
@@ -53,6 +53,12 @@ func (dq *DedupQueue) Stop() {
close(dq.stopCh)
}
func (dq *DedupQueue) Len() int {
dq.mu.Lock()
defer dq.mu.Unlock()
return len(dq.entries)
}
func (dq *DedupQueue) cleanup() {
now := time.Now()
dq.mu.Lock()