diff options
| author | Chris Lu <chris.lu@uber.com> | 2019-03-15 17:20:24 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@uber.com> | 2019-03-15 17:20:24 -0700 |
| commit | 55bab1b456c3c13a8009a11730e678ca0c48dfb0 (patch) | |
| tree | c7609b465c8444fc7538cb7f9392011840e1b38c /weed/filesys/file.go | |
| parent | cece860bfde443d4f8cddb04b10fb98a998995ed (diff) | |
| download | seaweedfs-55bab1b456c3c13a8009a11730e678ca0c48dfb0.tar.xz seaweedfs-55bab1b456c3c13a8009a11730e678ca0c48dfb0.zip | |
add context.Context
Diffstat (limited to 'weed/filesys/file.go')
| -rw-r--r-- | weed/filesys/file.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filesys/file.go b/weed/filesys/file.go index 812137fe2..eb4b03f64 100644 --- a/weed/filesys/file.go +++ b/weed/filesys/file.go @@ -109,7 +109,7 @@ func (file *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *f return nil } - return file.wfs.withFilerClient(func(client filer_pb.SeaweedFilerClient) error { + return file.wfs.withFilerClient(ctx, func(client filer_pb.SeaweedFilerClient) error { request := &filer_pb.UpdateEntryRequest{ Directory: file.dir.Path, @@ -144,7 +144,7 @@ func (file *File) maybeLoadAttributes(ctx context.Context) error { file.setEntry(entry) // glog.V(1).Infof("file attr read cached %v attributes", file.Name) } else { - err := file.wfs.withFilerClient(func(client filer_pb.SeaweedFilerClient) error { + err := file.wfs.withFilerClient(ctx, func(client filer_pb.SeaweedFilerClient) error { request := &filer_pb.LookupDirectoryEntryRequest{ Name: file.Name, |
