Add DeleteQueue method to Inspector

- Added ErrQueueNotFound and ErrQueueNotEmpty type to indicate the kind
  of an error returned from the method.
This commit is contained in:
Ken Hibino
2020-11-27 22:27:54 -08:00
parent 8f9d5a3352
commit e9239260ae
4 changed files with 259 additions and 20 deletions

View File

@@ -745,7 +745,6 @@ func (r *RDB) RemoveQueue(qname string, force bool) error {
return err
}
}
return r.client.SRem(base.AllQueues, qname).Err()
}