Merge pull request #446 from crawlab-team/develop

fixed "nil returned" error
This commit is contained in:
Marvin Zhang
2020-01-11 16:45:52 +08:00
committed by GitHub

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