Browse Source

fix(version): add raftVersion to the version file

Brandon Philips 12 years ago
parent
commit
3fff0a3c2b
2 changed files with 6 additions and 3 deletions
  1. 1 3
      raft_server.go
  2. 5 0
      version.go

+ 1 - 3
raft_server.go

@@ -36,9 +36,7 @@ func newRaftServer(name string, url string, tlsConf *TLSConfig, tlsInfo *TLSInfo
 
 	return &raftServer{
 		Server:  server,
-		// TODO: This will be the internal protocol version but tie it
-		// to the release tag for now.
-		version: releaseVersion,
+		version: raftVersion,
 		name:    name,
 		url:     url,
 		tlsConf: tlsConf,

+ 5 - 0
version.go

@@ -1,3 +1,8 @@
 package main
 
 const version = "v1"
+
+// TODO: The release version (generated from the git tag) will be the raft
+// protocol version for now. When things settle down we will fix it like the
+// client API above.
+const raftVersion = releaseVersion