Skip to content

Commit

Permalink
修正qpop别名的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
seefan committed Dec 9, 2017
1 parent 2845cff commit caeeb3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions queue.go
Expand Up @@ -127,9 +127,9 @@ func (c *Client) Qpop_back(name string) (v Value, err error) {
// 返回 v,返回一个元素,并在队列中删除 v;队列为空时返回空值
// 返回 err,执行的错误,操作成功返回 nil
func (c *Client) Qpop(name string, reverse ...bool) (v Value, err error) {
index := 1
index := 0
if len(reverse) > 0 && !reverse[0] {
index = 0
index = 1
}
resp, err := c.Do(qpop_cmd[index], name)
if err != nil {
Expand Down

0 comments on commit caeeb3c

Please sign in to comment.