mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
nip
This commit is contained in:
parent
efc14b719d
commit
1b69ebcb6c
11
etcd.go
11
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 := &JoinCommand{
|
||||||
command.Name = s.Name()
|
Name : s.Name(),
|
||||||
command.Hostname = info.Hostname
|
Hostname : info.Hostname,
|
||||||
command.RaftPort = info.RaftPort
|
RaftPort : info.RaftPort,
|
||||||
command.ClientPort = info.ClientPort
|
ClientPort : info.ClientPort,
|
||||||
|
}
|
||||||
|
|
||||||
json.NewEncoder(&b).Encode(command)
|
json.NewEncoder(&b).Encode(command)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user