mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-20 03:59:56 +08:00
added context to filer_client method calls (#6808)
Co-authored-by: akosov <a.kosov@kryptonite.ru>
This commit is contained in:
@@ -91,7 +91,7 @@ func (ce *CommandEnv) checkDirectory(path string) error {
|
||||
|
||||
dir, name := util.FullPath(path).DirAndName()
|
||||
|
||||
exists, err := filer_pb.Exists(ce, dir, name, true)
|
||||
exists, err := filer_pb.Exists(context.Background(), ce, dir, name, true)
|
||||
|
||||
if !exists {
|
||||
return fmt.Errorf("%s is not a directory", path)
|
||||
|
Reference in New Issue
Block a user