mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-22 11:09:02 -05:00
update reva, replace go-micro redis store plugin
This commit is contained in:
+4
@@ -3,6 +3,7 @@ package redis
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
@@ -113,6 +114,9 @@ func (r *rkv) Read(key string, opts ...store.ReadOption) ([]*store.Record, error
|
||||
}
|
||||
|
||||
if len(keys) == 1 {
|
||||
if errors.Is(err, redis.Nil) {
|
||||
return records, store.ErrNotFound
|
||||
}
|
||||
return records, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user