From 8aeeb61c9deeb5e18e5f9515f78d599ca45aa976 Mon Sep 17 00:00:00 2001 From: Ken Hibino Date: Wed, 19 May 2021 16:39:02 -0700 Subject: [PATCH] Misc cleanup --- inspector.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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