fixed "nil returned" error

This commit is contained in:
marvzhang
2020-01-11 16:44:53 +08:00
parent c89a6f4bf2
commit 4b5c649eca

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