Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
tikazyq committed Jul 8, 2020
2 parents 2abb450 + d1ec616 commit 8399597
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions backend/database/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,10 @@ func (r *Redis) HScan(collection string) (results []string, err error) {
if err != nil {
return results, err
}

results = append(results, items[1])

for i := 0; i < len(items); i += 2 {
cur := items[i+1]
results = append(results, cur)
}
if cursor == 0 {
break
}
Expand Down

0 comments on commit 8399597

Please sign in to comment.