mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
filer: etcd store avoid read with nil option
fix https://github.com/chrislusf/seaweedfs/issues/1463
This commit is contained in:
parent
3984c3962f
commit
2a0925590c
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue