mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 21:35:52 +00:00
fix refactoring
This commit is contained in:
parent
7de57ba4de
commit
8e16bd7d77
@ -131,9 +131,9 @@ func IsConsulServer(m serf.Member) (bool, *Server) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
raftVsn := 0
|
raftVsn := 0
|
||||||
raft_vsn_str, ok := m.Tags["raft_vsn"]
|
raftVsnStr, ok := m.Tags["raft_vsn"]
|
||||||
if ok {
|
if ok {
|
||||||
raftVsn, err = strconv.Atoi(raft_vsn_str)
|
raftVsn, err = strconv.Atoi(raftVsnStr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
@ -149,7 +149,7 @@ func IsConsulServer(m serf.Member) (bool, *Server) {
|
|||||||
Port: port,
|
Port: port,
|
||||||
SegmentAddrs: segmentAddrs,
|
SegmentAddrs: segmentAddrs,
|
||||||
SegmentPorts: segmentPorts,
|
SegmentPorts: segmentPorts,
|
||||||
WanJoinPort: wan_join_port,
|
WanJoinPort: wanJoinPort,
|
||||||
Bootstrap: bootstrap,
|
Bootstrap: bootstrap,
|
||||||
Expect: expect,
|
Expect: expect,
|
||||||
Addr: addr,
|
Addr: addr,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user