فهرست منبع

chore(name_url_map): rename version to raftVersion

make it more clear that we are referring to the raftVersion.
Brandon Philips 12 سال پیش
والد
کامیت
b430a07e1b
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      name_url_map.go

+ 2 - 2
name_url_map.go

@@ -7,7 +7,7 @@ import (
 
 // we map node name to url
 type nodeInfo struct {
-	version string
+	raftVersion string
 	raftURL string
 	etcdURL string
 }
@@ -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,
 	}