chore: gofmt go files

This commit is contained in:
Yicheng Qin 2014-04-17 08:47:48 -07:00
parent 93d1293b9d
commit 82dee82bfd
2 changed files with 5 additions and 5 deletions

View File

@ -40,7 +40,7 @@ const (
) )
const ( const (
peerModeFlag = 0 peerModeFlag = 0
standbyModeFlag = 1 standbyModeFlag = 1
) )

View File

@ -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),
} }
} }