aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-02-18 20:05:55 -0800
committerChris Lu <chris.lu@gmail.com>2019-02-18 20:05:55 -0800
commit448645203aa8478c83a0376a4b229ad1405839d0 (patch)
tree06c1bf786666272ea153ad3316f86921f1222fcf
parentd37c3ab7a5e26054f78f3c6734cf57cebb1f43bd (diff)
downloadseaweedfs-448645203aa8478c83a0376a4b229ad1405839d0.tar.xz
seaweedfs-448645203aa8478c83a0376a4b229ad1405839d0.zip
remove unused variables
-rw-r--r--weed/operation/grpc_client.go11
1 files changed, 2 insertions, 9 deletions
diff --git a/weed/operation/grpc_client.go b/weed/operation/grpc_client.go
index a02844657..c842ed09f 100644
--- a/weed/operation/grpc_client.go
+++ b/weed/operation/grpc_client.go
@@ -2,20 +2,13 @@ package operation
import (
"fmt"
- "strconv"
- "strings"
- "sync"
-
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/pb/master_pb"
"github.com/chrislusf/seaweedfs/weed/pb/volume_server_pb"
"github.com/chrislusf/seaweedfs/weed/util"
"google.golang.org/grpc"
-)
-
-var (
- grpcClients = make(map[string]*grpc.ClientConn)
- grpcClientsLock sync.Mutex
+ "strconv"
+ "strings"
)
func WithVolumeServerClient(volumeServer string, grpcDialOption grpc.DialOption, fn func(volume_server_pb.VolumeServerClient) error) error {