Fix QueueInfo conversion helper

This commit is contained in:
Ken Hibino 2022-03-25 06:05:53 -07:00
parent 81eed7e33d
commit b7667d8c7b

View File

@ -116,6 +116,7 @@ func toQueueStateSnapshot(info *asynq.QueueInfo) *queueStateSnapshot {
Queue: info.Queue, Queue: info.Queue,
MemoryUsage: info.MemoryUsage, MemoryUsage: info.MemoryUsage,
Size: info.Size, Size: info.Size,
Groups: info.Groups,
LatencyMillisec: info.Latency.Milliseconds(), LatencyMillisec: info.Latency.Milliseconds(),
DisplayLatency: info.Latency.Round(10 * time.Millisecond).String(), DisplayLatency: info.Latency.Round(10 * time.Millisecond).String(),
Active: info.Active, Active: info.Active,