Skip to content

Commit

Permalink
Merge pull request #13 from acoshift/fix-redis
Browse files Browse the repository at this point in the history
ignore nil error
  • Loading branch information
acoshift committed Apr 8, 2017
2 parents 23ab192 + 55a1027 commit 1d7173c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cache/redis/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ func (cache *Cache) GetMulti(keys []*datastore.Key, dst interface{}) error {
}
for i := range keys {
b, err := redis.Bytes(db.Receive())
if err == redis.ErrNil {
continue
}
if err != nil {
return err
}
Expand Down

0 comments on commit 1d7173c

Please sign in to comment.