diff --git a/inspector.go b/inspector.go index 3635b34..877e584 100644 --- a/inspector.go +++ b/inspector.go @@ -137,15 +137,14 @@ func (i *Inspector) History(qname string, n int) ([]*DailyStats, error) { var ( // ErrQueueNotFound indicates that the specified queue does not exist. ErrQueueNotFound = errors.New("queue not found") + // ErrQueueNotEmpty indicates that the specified queue is not empty. ErrQueueNotEmpty = errors.New("queue is not empty") + // ErrTaskNotFound indicates that the specified task cannot be found in the queue. ErrTaskNotFound = errors.New("task not found") ) -type taskNotFoundError struct { -} - // DeleteQueue removes the specified queue. // // If force is set to true, DeleteQueue will remove the queue regardless of