mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
server: move var noneId to standby.go
This commit is contained in:
parent
d120962959
commit
6dc49def25
@ -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 {
|
||||
|
@ -11,6 +11,10 @@ import (
|
||||
"github.com/coreos/etcd/store"
|
||||
)
|
||||
|
||||
var (
|
||||
noneId int64 = -1
|
||||
)
|
||||
|
||||
type standby struct {
|
||||
id int64
|
||||
pubAddr string
|
||||
|
Loading…
x
Reference in New Issue
Block a user