aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys/wfs.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-07-03 19:07:55 -0700
committerChris Lu <chris.lu@gmail.com>2018-07-03 19:07:55 -0700
commit77fc8c59140537bb693ccf44c63e68626322b70e (patch)
treefe68e68eeb061da8a1172b8c1d6b65fd84a2d734 /weed/filesys/wfs.go
parent28e5f20c8e8cf7cb84026db43c9f33ff13236b64 (diff)
downloadseaweedfs-77fc8c59140537bb693ccf44c63e68626322b70e.tar.xz
seaweedfs-77fc8c59140537bb693ccf44c63e68626322b70e.zip
keep alive for gRpc calls
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 a126bf3ea..d7e133483 100644
--- a/weed/filesys/wfs.go
+++ b/weed/filesys/wfs.go
@@ -5,10 +5,10 @@ import (
"fmt"
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
"github.com/karlseguin/ccache"
- "google.golang.org/grpc"
"sync"
"bazil.org/fuse"
"github.com/chrislusf/seaweedfs/weed/glog"
+ "github.com/chrislusf/seaweedfs/weed/util"
)
type WFS struct {
@@ -43,7 +43,7 @@ func (wfs *WFS) Root() (fs.Node, error) {
func (wfs *WFS) withFilerClient(fn func(filer_pb.SeaweedFilerClient) error) error {
- grpcConnection, err := grpc.Dial(wfs.filerGrpcAddress, grpc.WithInsecure())
+ grpcConnection, err := util.GrpcDial(wfs.filerGrpcAddress)
if err != nil {
return fmt.Errorf("fail to dial %s: %v", wfs.filerGrpcAddress, err)
}