fixed "nil returned" error

This commit is contained in:
marvzhang
2020-01-11 16:44:53 +08:00
parent 72cad7bf64
commit 35d3af7b62

View File

@@ -125,8 +125,6 @@ func (r *Redis) BRPop(collection string, timeout int) (string, error) {
values, err := redis.Strings(c.Do("BRPOP", collection, timeout))
if err != nil {
log.Error(err.Error())
debug.PrintStack()
return "", err
}
return values[1], nil