diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-09-11 15:29:45 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-09-11 15:29:45 -0700 |
| commit | 2a0925590c4a76c4897a85a0658881e99bc4cf38 (patch) | |
| tree | 2f5b7a09f9bb462c2cf18ec5810db05127df76b0 | |
| parent | 3984c3962f8843a224e0b9bcc365729d747e9210 (diff) | |
| download | seaweedfs-2a0925590c4a76c4897a85a0658881e99bc4cf38.tar.xz seaweedfs-2a0925590c4a76c4897a85a0658881e99bc4cf38.zip | |
filer: etcd store avoid read with nil option
fix https://github.com/chrislusf/seaweedfs/issues/1463
| -rw-r--r-- | weed/filer/etcd/etcd_store_kv.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
