aboutsummaryrefslogtreecommitdiff
path: root/weed/operation
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-11-23 00:26:15 -0800
committerChris Lu <chris.lu@gmail.com>2018-11-23 00:26:15 -0800
commit86dd93359604938e0ed37a4a6c2a82923887df3d (patch)
tree2f7b2bdafc1ddd6e6b207c2d5a2e2df9f52c5f8b /weed/operation
parent444dfded84696eb2d67876e228939ca3f9e7819f (diff)
downloadseaweedfs-86dd93359604938e0ed37a4a6c2a82923887df3d.tar.xz
seaweedfs-86dd93359604938e0ed37a4a6c2a82923887df3d.zip
go fmt
Diffstat (limited to 'weed/operation')
-rw-r--r--weed/operation/assign_file_id.go3
-rw-r--r--weed/operation/grpc_client.go4
2 files changed, 4 insertions, 3 deletions
diff --git a/weed/operation/assign_file_id.go b/weed/operation/assign_file_id.go
index d9f12e545..924b29c0e 100644
--- a/weed/operation/assign_file_id.go
+++ b/weed/operation/assign_file_id.go
@@ -1,9 +1,10 @@
package operation
import (
+ "context"
"fmt"
+
"github.com/chrislusf/seaweedfs/weed/pb/master_pb"
- "context"
)
type VolumeAssignRequest struct {
diff --git a/weed/operation/grpc_client.go b/weed/operation/grpc_client.go
index 6720fe3a3..b1d6a633e 100644
--- a/weed/operation/grpc_client.go
+++ b/weed/operation/grpc_client.go
@@ -4,14 +4,14 @@ 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"
- "sync"
"google.golang.org/grpc"
- )
+)
var (
grpcClients = make(map[string]*grpc.ClientConn)