mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-06 20:17:38 +01:00
filer: etcd store avoid read with nil option
fix https://github.com/chrislusf/seaweedfs/issues/1463
This commit is contained in:
1 parent
3984c3962f
commit
2a0925590c
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user