Skip to content

Commit

Permalink
chore(name_url_map): rename version to raftVersion
Browse files Browse the repository at this point in the history
make it more clear that we are referring to the raftVersion.
  • Loading branch information
Brandon Philips committed Aug 19, 2013
1 parent bfc68e8 commit b430a07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions name_url_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

// we map node name to url
type nodeInfo struct {
version string
raftVersion string
raftURL string
etcdURL string
}
Expand Down Expand Up @@ -42,7 +42,7 @@ func nameToRaftURL(name string) (string, bool) {
// addNameToURL add a name that maps to raftURL and etcdURL
func addNameToURL(name string, version string, raftURL string, etcdURL string) {
namesMap[name] = &nodeInfo{
version: version,
raftVersion: raftVersion,
raftURL: raftURL,
etcdURL: etcdURL,
}
Expand Down

0 comments on commit b430a07

Please sign in to comment.