mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #988 from coreos/default_peers
etcdserver: add default peer
This commit is contained in:
commit
dd49b7a133
3
main.go
3
main.go
@ -15,7 +15,7 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
fid = flag.String("id", "0xBEEF", "Id of this server")
|
||||
fid = flag.String("id", "0x1", "Id of this server")
|
||||
timeout = flag.Duration("timeout", 10*time.Second, "Request Timeout")
|
||||
laddr = flag.String("l", ":8080", "HTTP service address (e.g., ':8080')")
|
||||
|
||||
@ -23,6 +23,7 @@ var (
|
||||
)
|
||||
|
||||
func init() {
|
||||
peers.Set("0x1=localhost:8080")
|
||||
flag.Var(peers, "peers", "your peers")
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user