filer: etcd store avoid read with nil option

fix https://github.com/chrislusf/seaweedfs/issues/1463
This commit is contained in:
Chris Lu 2020-09-11 15:29:45 -07:00
parent 3984c3962f
commit 2a0925590c

View file

@ -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)