mirror of
https://github.com/hibiken/asynq.git
synced 2024-12-26 07:42:17 +08:00
Fix inspector build error
This commit is contained in:
parent
aa2676bb57
commit
2a18181501
13
inspector.go
13
inspector.go
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user