* fix bug https://github.com/micro/go-plugins/issues/565 * del Redundant code Co-authored-by: 杨羽 <yangyu@doumi.com>
This commit is contained in:
parent
7eb9a721f7
commit
f7b907b40b
1
redis.go
1
redis.go
@ -40,7 +40,6 @@ func (r *rkv) Read(key string, opts ...store.ReadOption) ([]*store.Record, error
|
|||||||
// TODO suffix
|
// TODO suffix
|
||||||
if options.Prefix {
|
if options.Prefix {
|
||||||
prefix_key := fmt.Sprintf("%s*", rkey)
|
prefix_key := fmt.Sprintf("%s*", rkey)
|
||||||
r.Client.Keys(key)
|
|
||||||
fkeys, err := r.Client.Keys(prefix_key).Result()
|
fkeys, err := r.Client.Keys(prefix_key).Result()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
Reference in New Issue
Block a user