Skip to content

Commit

Permalink
Rename health to checkHealth
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrvivian committed Feb 5, 2024
1 parent 3129f10 commit 854d683
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/toolset/indexer_health.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/iotaledger/iota.go/v4/api"
)

func health(args []string) error {
func checkHealth(args []string) error {
fs := configuration.NewUnsortedFlagSet("", flag.ContinueOnError)
nodeURLFlag := fs.String(FlagToolIndexerURL, "http://localhost:9091", "URL of the indexer (optional)")

Expand Down
2 changes: 1 addition & 1 deletion pkg/toolset/toolset.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func HandleTools() {
}

tools := map[string]func([]string) error{
ToolIndexerHealth: health,
ToolIndexerHealth: checkHealth,
}

tool, exists := tools[strings.ToLower(args[1])]
Expand Down

0 comments on commit 854d683

Please sign in to comment.