浏览代码

etcdserver: move "unsafe" flags to bottom

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 7 年之前
父节点
当前提交
9af05a45d4
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      etcdserver/config.go

+ 2 - 1
etcdserver/config.go

@@ -44,7 +44,6 @@ type ServerConfig struct {
 	InitialPeerURLsMap  types.URLsMap
 	InitialClusterToken string
 	NewCluster          bool
-	ForceNewCluster     bool
 	PeerTLSInfo         transport.TLSInfo
 
 	// HostWhitelist lists acceptable hostnames from client requests.
@@ -80,6 +79,8 @@ type ServerConfig struct {
 	PreVote bool
 
 	Debug bool
+
+	ForceNewCluster bool
 }
 
 // VerifyBootstrap sanity-checks the initial config for bootstrap case