mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdserver: change default id to 0x1
This commit is contained in:
parent
c1e7a788cd
commit
bca8f9e0ed
4
main.go
4
main.go
@ -15,7 +15,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
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")
|
timeout = flag.Duration("timeout", 10*time.Second, "Request Timeout")
|
||||||
laddr = flag.String("l", ":8080", "HTTP service address (e.g., ':8080')")
|
laddr = flag.String("l", ":8080", "HTTP service address (e.g., ':8080')")
|
||||||
|
|
||||||
@ -23,7 +23,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
peers.Set("0xBEEF=localhost:8080")
|
peers.Set("0x1=localhost:8080")
|
||||||
flag.Var(peers, "peers", "your peers")
|
flag.Var(peers, "peers", "your peers")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user