Browse Source

Merge pull request #1653 from jonboulle/server_order

etcdserver: re-order ServerConfig fields
Jonathan Boulle 11 years ago
parent
commit
c3aae88b0c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      etcdmain/etcd.go
  2. 1 1
      etcdserver/config.go

+ 1 - 1
etcdmain/etcd.go

@@ -271,8 +271,8 @@ func startEtcd() error {
 		DiscoveryURL:    *durl,
 		DiscoveryProxy:  *dproxy,
 		NewCluster:      clusterStateFlag.String() == clusterStateFlagNew,
-		Transport:       pt,
 		ForceNewCluster: *forceNewCluster,
+		Transport:       pt,
 	}
 	var s *etcdserver.EtcdServer
 	s, err = etcdserver.NewServer(cfg)

+ 1 - 1
etcdserver/config.go

@@ -35,8 +35,8 @@ type ServerConfig struct {
 	SnapCount       uint64
 	Cluster         *Cluster
 	NewCluster      bool
-	Transport       *http.Transport
 	ForceNewCluster bool
+	Transport       *http.Transport
 }
 
 // VerifyBootstrapConfig sanity-checks the initial config and returns an error