From 6dc49def250d9df76b3853c0626622bc4f04953a Mon Sep 17 00:00:00 2001 From: Yicheng Qin Date: Fri, 18 Jul 2014 13:34:54 -0700 Subject: [PATCH] server: move var noneId to standby.go --- etcd/participant.go | 7 +++---- etcd/standby.go | 4 ++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/etcd/participant.go b/etcd/participant.go index b808da6d8..692c47db3 100644 --- a/etcd/participant.go +++ b/etcd/participant.go @@ -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 { diff --git a/etcd/standby.go b/etcd/standby.go index 130dc6089..aac412a99 100644 --- a/etcd/standby.go +++ b/etcd/standby.go @@ -11,6 +11,10 @@ import ( "github.com/coreos/etcd/store" ) +var ( + noneId int64 = -1 +) + type standby struct { id int64 pubAddr string