mirror of
https://github.com/hibiken/asynq.git
synced 2024-12-26 07:42:17 +08:00
fix(274): ignore empty data to append to msgs
fix issue 274
This commit is contained in:
parent
7ef0511f35
commit
d0041c55a3
@ -1305,6 +1305,9 @@ func (r *RDB) ListLeaseExpired(cutoff time.Time, qnames ...string) ([]*base.Task
|
||||
return nil, errors.E(op, errors.Internal, fmt.Sprintf("cast error: Lua script returned unexpected value: %v", res))
|
||||
}
|
||||
for _, s := range data {
|
||||
if len(s) == 0 {
|
||||
continue
|
||||
}
|
||||
msg, err := base.DecodeMessage([]byte(s))
|
||||
if err != nil {
|
||||
return nil, errors.E(op, errors.Internal, fmt.Sprintf("cannot decode message: %v", err))
|
||||
|
Loading…
Reference in New Issue
Block a user