Browse Source

etcdserver: fix gofmt warnings with Go 1.11

Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
Gyuho Lee 7 years ago
parent
commit
8560221091
2 changed files with 8 additions and 8 deletions
  1. 6 6
      etcdserver/api/v2http/client.go
  2. 2 2
      etcdserver/config_test.go

+ 6 - 6
etcdserver/api/v2http/client.go

@@ -76,12 +76,12 @@ func handleV2(lg *zap.Logger, mux *http.ServeMux, server etcdserver.ServerV2, ti
 	}
 	}
 
 
 	mh := &membersHandler{
 	mh := &membersHandler{
-		lg:      lg,
-		sec:     sec,
-		server:  server,
-		cluster: server.Cluster(),
-		timeout: timeout,
-		clock:   clockwork.NewRealClock(),
+		lg:                    lg,
+		sec:                   sec,
+		server:                server,
+		cluster:               server.Cluster(),
+		timeout:               timeout,
+		clock:                 clockwork.NewRealClock(),
 		clientCertAuthEnabled: server.ClientCertAuthEnabled(),
 		clientCertAuthEnabled: server.ClientCertAuthEnabled(),
 	}
 	}
 
 

+ 2 - 2
etcdserver/config_test.go

@@ -196,8 +196,8 @@ func TestWALDir(t *testing.T) {
 
 
 func TestShouldDiscover(t *testing.T) {
 func TestShouldDiscover(t *testing.T) {
 	tests := map[string]bool{
 	tests := map[string]bool{
-		"":    false,
-		"foo": true,
+		"":                              false,
+		"foo":                           true,
 		"http://discovery.etcd.io/asdf": true,
 		"http://discovery.etcd.io/asdf": true,
 	}
 	}
 	for durl, w := range tests {
 	for durl, w := range tests {