mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
gofmt
This commit is contained in:
parent
742589aa72
commit
a15b4bb687
18
etcd.go
18
etcd.go
@ -554,14 +554,14 @@ func getInfo(path string) *Info {
|
|||||||
|
|
||||||
RaftPort: raftPort,
|
RaftPort: raftPort,
|
||||||
ClientPort: clientPort,
|
ClientPort: clientPort,
|
||||||
WebPort: webPort,
|
WebPort: webPort,
|
||||||
|
|
||||||
ClientCAFile: clientCAFile,
|
ClientCAFile: clientCAFile,
|
||||||
ClientCertFile: clientCertFile,
|
ClientCertFile: clientCertFile,
|
||||||
ClientKeyFile: clientKeyFile,
|
ClientKeyFile: clientKeyFile,
|
||||||
|
|
||||||
ServerCAFile: serverCAFile,
|
ServerCAFile: serverCAFile,
|
||||||
ServerKeyFile: serverKeyFile,
|
ServerKeyFile: serverKeyFile,
|
||||||
ServerCertFile: serverCertFile,
|
ServerCertFile: serverCertFile,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -599,10 +599,10 @@ func joinCluster(s *raft.Server, serverName string) error {
|
|||||||
var b bytes.Buffer
|
var b bytes.Buffer
|
||||||
|
|
||||||
command := &JoinCommand{
|
command := &JoinCommand{
|
||||||
Name : s.Name(),
|
Name: s.Name(),
|
||||||
Hostname : info.Hostname,
|
Hostname: info.Hostname,
|
||||||
RaftPort : info.RaftPort,
|
RaftPort: info.RaftPort,
|
||||||
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