server: move var noneId to standby.go

This commit is contained in:
Yicheng Qin 2014-07-18 13:34:54 -07:00
parent d120962959
commit 6dc49def25
2 changed files with 7 additions and 4 deletions

View File

@ -36,10 +36,9 @@ const (
)
var (
tmpErr = fmt.Errorf("try again")
stopErr = fmt.Errorf("server is stopped")
raftStopErr = fmt.Errorf("raft is stopped")
noneId int64 = -1
tmpErr = fmt.Errorf("try again")
stopErr = fmt.Errorf("server is stopped")
raftStopErr = fmt.Errorf("raft is stopped")
)
type participant struct {

View File

@ -11,6 +11,10 @@ import (
"github.com/coreos/etcd/store"
)
var (
noneId int64 = -1
)
type standby struct {
id int64
pubAddr string