Merge pull request #19 from lippserd/bugfix/hmyield

HMYield(): handle missing values
This commit is contained in:
Eric Lippmann 2021-04-22 10:20:21 +02:00 committed by GitHub
commit cab03bd8f6

View file

@ -117,6 +117,11 @@ func (c *Client) HMYield(ctx context.Context, key string, count int, concurrent
g.Go(func() error {
for i, v := range vals {
if v == nil {
c.logger.Warnf("HMGET %s: field %#v missing", key, batch[i])
continue
}
select {
case pairs <- HPair{
Field: batch[i],