diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-11-14 23:50:46 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-11-14 23:50:46 -0800 |
| commit | d3b7965c76a9f146e6d3db99a836f1bad4ca3c40 (patch) | |
| tree | f9f09554e3c987e679a47236c709fc684ee4dfab /weed/filesys/wfs.go | |
| parent | d89774cb7f4105223fde3ef0a2fcd85d90524e9c (diff) | |
| download | seaweedfs-d3b7965c76a9f146e6d3db99a836f1bad4ca3c40.tar.xz seaweedfs-d3b7965c76a9f146e6d3db99a836f1bad4ca3c40.zip | |
caching grpc clients
Diffstat (limited to 'weed/filesys/wfs.go')
| -rw-r--r-- | weed/filesys/wfs.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go index 7fb3e0141..a3e16a996 100644 --- a/weed/filesys/wfs.go +++ b/weed/filesys/wfs.go @@ -66,6 +66,7 @@ func (wfs *WFS) withFilerClient(fn func(filer_pb.SeaweedFilerClient) error) erro grpcConnection, err := util.GrpcDial(wfs.option.FilerGrpcAddress) if err != nil { + wfs.grpcClientsLock.Unlock() return fmt.Errorf("fail to dial %s: %v", wfs.option.FilerGrpcAddress, err) } |
