mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
chore(name_url_map): rename version to raftVersion
make it more clear that we are referring to the raftVersion.
This commit is contained in:
parent
bfc68e8e37
commit
b430a07e1b
@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
// we map node name to url
|
// we map node name to url
|
||||||
type nodeInfo struct {
|
type nodeInfo struct {
|
||||||
version string
|
raftVersion string
|
||||||
raftURL string
|
raftURL string
|
||||||
etcdURL string
|
etcdURL string
|
||||||
}
|
}
|
||||||
@ -42,7 +42,7 @@ func nameToRaftURL(name string) (string, bool) {
|
|||||||
// addNameToURL add a name that maps to raftURL and etcdURL
|
// addNameToURL add a name that maps to raftURL and etcdURL
|
||||||
func addNameToURL(name string, version string, raftURL string, etcdURL string) {
|
func addNameToURL(name string, version string, raftURL string, etcdURL string) {
|
||||||
namesMap[name] = &nodeInfo{
|
namesMap[name] = &nodeInfo{
|
||||||
version: version,
|
raftVersion: raftVersion,
|
||||||
raftURL: raftURL,
|
raftURL: raftURL,
|
||||||
etcdURL: etcdURL,
|
etcdURL: etcdURL,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user