@@ -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,
@@ -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