etcdserver: add default peer

This commit is contained in:
Xiang Li 2014-09-04 10:11:32 -07:00
parent 8f4c615704
commit c1e7a788cd
2 changed files with 2 additions and 1 deletions

View File

@ -18,13 +18,13 @@ import (
crand "crypto/rand"
"math/rand"
"github.com/coreos/etcd/third_party/code.google.com/p/go.net/context"
"github.com/coreos/etcd/elog"
etcderrors "github.com/coreos/etcd/error"
"github.com/coreos/etcd/etcdserver"
"github.com/coreos/etcd/etcdserver/etcdserverpb"
"github.com/coreos/etcd/raft/raftpb"
"github.com/coreos/etcd/store"
"github.com/coreos/etcd/third_party/code.google.com/p/go.net/context"
)
type Peers map[int64][]string

View File

@ -23,6 +23,7 @@ var (
)
func init() {
peers.Set("0xBEEF=localhost:8080")
flag.Var(peers, "peers", "your peers")
}