Skip to content

Commit

Permalink
fix(274): ignore empty data to append to msgs
Browse files Browse the repository at this point in the history
fix issue 274
  • Loading branch information
yeqown authored and hibiken committed Dec 10, 2023
1 parent 7ef0511 commit d0041c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/rdb/rdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit d0041c5

Please sign in to comment.