2
0
mirror of https://github.com/hibiken/asynq.git synced 2024-12-25 23:32:17 +08:00

Fix inspector build error

This commit is contained in:
Ken Hibino 2020-08-17 20:49:55 -07:00
parent aa2676bb57
commit 2a18181501

View File

@ -59,7 +59,18 @@ func (i *Inspector) CurrentStats(qname string) (*Stats, error) {
if err != nil {
return nil, err
}
return &Stats(stats), nil
return &Stats{
Queue: stats.Queue,
Enqueued: stats.Enqueued,
InProgress: stats.InProgress,
Scheduled: stats.Scheduled,
Retry: stats.Retry,
Dead: stats.Dead,
Processed: stats.Processed,
Failed: stats.Failed,
Paused: stats.Paused,
Timestamp: stats.Timestamp,
}, nil
}
// DailyStats holds aggregate data for a given day for a given queue.