Browse Source

etcdserver: add default peer

Xiang Li 11 years ago
parent
commit
c1e7a788cd
2 changed files with 2 additions and 1 deletions
  1. 1 1
      etcdserver/etcdhttp/http.go
  2. 1 0
      main.go

+ 1 - 1
etcdserver/etcdhttp/http.go

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

+ 1 - 0
main.go

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