Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitarPetrov committed Aug 21, 2019
1 parent 3a34381 commit 91eb2a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/health/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,14 @@ type Indicator interface {
Status() (interface{}, error)
}

// NewDefaultRegistry returns a default health registry with a single ping indicator
// NewDefaultRegistry returns a default empty health registry
func NewDefaultRegistry() *Registry {
return &Registry{
HealthIndicators: []Indicator{},
HealthIndicators: make([]Indicator, 0),
}
}

// Registry is an interface to store and fetch health indicators
// Registry is a struct to store health indicators
type Registry struct {
// HealthIndicators are the currently registered health indicators
HealthIndicators []Indicator
Expand Down

0 comments on commit 91eb2a9

Please sign in to comment.