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