Merge pull request #734 from unihorn/67

chore: gofmt go files
This commit is contained in:
Yicheng Qin 2014-04-17 08:49:46 -07:00
commit d368405d05
2 changed files with 5 additions and 5 deletions

View File

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

View File

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