added context to filer_client method calls (#6808)
Co-authored-by: akosov <a.kosov@kryptonite.ru>
This commit is contained in:
@@ -74,7 +74,7 @@ func (c *commandFsRm) Do(args []string, commandEnv *CommandEnv, writer io.Writer
|
||||
Directory: targetDir,
|
||||
Name: targetName,
|
||||
}
|
||||
_, err = filer_pb.LookupEntry(client, lookupRequest)
|
||||
_, err = filer_pb.LookupEntry(context.Background(), client, lookupRequest)
|
||||
if err != nil {
|
||||
fmt.Fprintf(writer, "rm: %s: %v\n", targetPath, err)
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user