Fabrizio (Misto) Milo hace 12 años
padre
commit
1b69ebcb6c
Se han modificado 1 ficheros con 6 adiciones y 5 borrados
  1. 6 5
      etcd.go

+ 6 - 5
etcd.go

@@ -598,11 +598,12 @@ func createCertPool(CAFile string) *x509.CertPool {
 func joinCluster(s *raft.Server, serverName string) error {
 func joinCluster(s *raft.Server, serverName string) error {
 	var b bytes.Buffer
 	var b bytes.Buffer
 
 
-	command := &JoinCommand{}
-	command.Name = s.Name()
-	command.Hostname = info.Hostname
-	command.RaftPort = info.RaftPort
-	command.ClientPort = info.ClientPort
+	command := &JoinCommand{
+		Name : s.Name(),
+		Hostname : info.Hostname,
+		RaftPort : info.RaftPort,
+		ClientPort : info.ClientPort,
+	}
 
 
 	json.NewEncoder(&b).Encode(command)
 	json.NewEncoder(&b).Encode(command)