fix(version): add raftVersion to the version file

release-0.4
Brandon Philips 2013-08-19 08:45:58 -07:00
parent fc776f2ad6
commit 3fff0a3c2b
2 changed files with 6 additions and 3 deletions

View File

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

View File

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