* fix bug https://github.com/micro/go-plugins/issues/565

* del Redundant code

Co-authored-by: 杨羽 <yangyu@doumi.com>
This commit is contained in:
doubleycn@qq.com 2020-07-01 16:19:46 +08:00 committed by Vasiliy Tolstov
parent 7eb9a721f7
commit f7b907b40b

View File

@ -40,7 +40,6 @@ func (r *rkv) Read(key string, opts ...store.ReadOption) ([]*store.Record, error
// TODO suffix
if options.Prefix {
prefix_key := fmt.Sprintf("%s*", rkey)
r.Client.Keys(key)
fkeys, err := r.Client.Keys(prefix_key).Result()
if err != nil {
return nil, err