mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
commit
d368405d05
@ -40,7 +40,7 @@ const (
|
||||
)
|
||||
|
||||
const (
|
||||
peerModeFlag = 0
|
||||
peerModeFlag = 0
|
||||
standbyModeFlag = 1
|
||||
)
|
||||
|
||||
|
@ -22,8 +22,8 @@ const RegistryStandbyKey = "/_etcd/standbys"
|
||||
// The Registry stores URL information for nodes.
|
||||
type Registry struct {
|
||||
sync.Mutex
|
||||
store store.Store
|
||||
peers map[string]*node
|
||||
store store.Store
|
||||
peers map[string]*node
|
||||
standbys map[string]*node
|
||||
}
|
||||
|
||||
@ -37,8 +37,8 @@ type node struct {
|
||||
// Creates a new Registry.
|
||||
func NewRegistry(s store.Store) *Registry {
|
||||
return &Registry{
|
||||
store: s,
|
||||
peers: make(map[string]*node),
|
||||
store: s,
|
||||
peers: make(map[string]*node),
|
||||
standbys: make(map[string]*node),
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user