aboutsummaryrefslogtreecommitdiff
path: root/weed/command/filer_cat.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/command/filer_cat.go')
-rw-r--r--weed/command/filer_cat.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/command/filer_cat.go b/weed/command/filer_cat.go
index 2c0f84ddc..136440109 100644
--- a/weed/command/filer_cat.go
+++ b/weed/command/filer_cat.go
@@ -28,9 +28,9 @@ type FilerCatOptions struct {
}
func (fco *FilerCatOptions) GetLookupFileIdFunction() wdclient.LookupFileIdFunctionType {
- return func(fileId string) (targetUrls []string, err error) {
+ return func(ctx context.Context, fileId string) (targetUrls []string, err error) {
vid := filer.VolumeId(fileId)
- resp, err := fco.filerClient.LookupVolume(context.Background(), &filer_pb.LookupVolumeRequest{
+ resp, err := fco.filerClient.LookupVolume(ctx, &filer_pb.LookupVolumeRequest{
VolumeIds: []string{vid},
})
if err != nil {