From 2a0925590c4a76c4897a85a0658881e99bc4cf38 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 11 Sep 2020 15:29:45 -0700 Subject: [PATCH] filer: etcd store avoid read with nil option fix https://github.com/chrislusf/seaweedfs/issues/1463 --- weed/filer/etcd/etcd_store_kv.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/filer/etcd/etcd_store_kv.go b/weed/filer/etcd/etcd_store_kv.go index a803a5834..df252f46c 100644 --- a/weed/filer/etcd/etcd_store_kv.go +++ b/weed/filer/etcd/etcd_store_kv.go @@ -19,7 +19,7 @@ func (store *EtcdStore) KvPut(ctx context.Context, key []byte, value []byte) (er func (store *EtcdStore) KvGet(ctx context.Context, key []byte) (value []byte, err error) { - resp, err := store.client.Get(ctx, string(key), nil) + resp, err := store.client.Get(ctx, string(key)) if err != nil { return nil, fmt.Errorf("kv get: %v", err)