aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys/wfs.go
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2019-05-03 01:25:10 -0700
committerGitHub <noreply@github.com>2019-05-03 01:25:10 -0700
commit9d3c945b00e11e3cdd492abfcfb370291b98f686 (patch)
treecb902217b4d37c81e4f23fb4ec3c9bcdc77f0fa2 /weed/filesys/wfs.go
parentac52db3bedbba647cb4531444e16914e6d17b06a (diff)
parent7064b2ea48c541904a5a1ba9c144cbe3c070a1d4 (diff)
downloadseaweedfs-9d3c945b00e11e3cdd492abfcfb370291b98f686.tar.xz
seaweedfs-9d3c945b00e11e3cdd492abfcfb370291b98f686.zip
Merge pull request #950 from chrislusf/webdav
add WebDav
Diffstat (limited to 'weed/filesys/wfs.go')
-rw-r--r--weed/filesys/wfs.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go
index f8be24e5e..b4d1b0608 100644
--- a/weed/filesys/wfs.go
+++ b/weed/filesys/wfs.go
@@ -73,7 +73,7 @@ func (wfs *WFS) Root() (fs.Node, error) {
return &Dir{Path: wfs.option.FilerMountRootPath, wfs: wfs}, nil
}
-func (wfs *WFS) withFilerClient(ctx context.Context, fn func(filer_pb.SeaweedFilerClient) error) error {
+func (wfs *WFS) WithFilerClient(ctx context.Context, fn func(filer_pb.SeaweedFilerClient) error) error {
return util.WithCachedGrpcClient(ctx, func(grpcConnection *grpc.ClientConn) error {
client := filer_pb.NewSeaweedFilerClient(grpcConnection)
@@ -133,7 +133,7 @@ func (wfs *WFS) Statfs(ctx context.Context, req *fuse.StatfsRequest, resp *fuse.
if wfs.stats.lastChecked < time.Now().Unix()-20 {
- err := wfs.withFilerClient(ctx, func(client filer_pb.SeaweedFilerClient) error {
+ err := wfs.WithFilerClient(ctx, func(client filer_pb.SeaweedFilerClient) error {
request := &filer_pb.StatisticsRequest{
Collection: wfs.option.Collection,