diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-07-03 19:07:55 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-07-03 19:07:55 -0700 |
| commit | 77fc8c59140537bb693ccf44c63e68626322b70e (patch) | |
| tree | fe68e68eeb061da8a1172b8c1d6b65fd84a2d734 /weed/command/filer_copy.go | |
| parent | 28e5f20c8e8cf7cb84026db43c9f33ff13236b64 (diff) | |
| download | seaweedfs-77fc8c59140537bb693ccf44c63e68626322b70e.tar.xz seaweedfs-77fc8c59140537bb693ccf44c63e68626322b70e.zip | |
keep alive for gRpc calls
Diffstat (limited to 'weed/command/filer_copy.go')
| -rw-r--r-- | weed/command/filer_copy.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go index 3d4e5db9f..9937bc9d6 100644 --- a/weed/command/filer_copy.go +++ b/weed/command/filer_copy.go @@ -16,7 +16,6 @@ import ( "strconv" "io" "time" - "google.golang.org/grpc" "context" "github.com/chrislusf/seaweedfs/weed/util" ) @@ -340,7 +339,7 @@ func detectMimeType(f *os.File) string { func withFilerClient(filerAddress string, fn func(filer_pb.SeaweedFilerClient) error) error { - grpcConnection, err := grpc.Dial(filerAddress, grpc.WithInsecure()) + grpcConnection, err := util.GrpcDial(filerAddress) if err != nil { return fmt.Errorf("fail to dial %s: %v", filerAddress, err) } |
