Skip to content

Commit b430a07

Browse files
author
Brandon Philips
committed
chore(name_url_map): rename version to raftVersion
make it more clear that we are referring to the raftVersion.
1 parent bfc68e8 commit b430a07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

name_url_map.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
// we map node name to url
99
type nodeInfo struct {
10-
version string
10+
raftVersion string
1111
raftURL string
1212
etcdURL string
1313
}
@@ -42,7 +42,7 @@ func nameToRaftURL(name string) (string, bool) {
4242
// addNameToURL add a name that maps to raftURL and etcdURL
4343
func addNameToURL(name string, version string, raftURL string, etcdURL string) {
4444
namesMap[name] = &nodeInfo{
45-
version: version,
45+
raftVersion: raftVersion,
4646
raftURL: raftURL,
4747
etcdURL: etcdURL,
4848
}

0 commit comments

Comments
 (0)