Merge pull request #1653 from jonboulle/server_order

etcdserver: re-order ServerConfig fields
This commit is contained in:
Jonathan Boulle
2014-11-07 12:28:29 -08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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