From 8ac41533b6a110671ff2555e02b7257906c4e123 Mon Sep 17 00:00:00 2001 From: Rahul Singh <110548934+rahuldhirendersingh@users.noreply.github.com> Date: Wed, 24 Aug 2022 14:07:49 +0530 Subject: [PATCH] typo correction: for better code readability There was some spelling mistakes at multiple places, so I've made those changes to increase the better code readability --- httphandler/listener/setup.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/httphandler/listener/setup.go b/httphandler/listener/setup.go index 57616657..634e4d70 100644 --- a/httphandler/listener/setup.go +++ b/httphandler/listener/setup.go @@ -19,7 +19,7 @@ const ( scanPath = "/v1/scan" statusPath = "/v1/status" resultsPath = "/v1/results" - prometheusMmeticsPath = "/v1/metrics" + prometheusMetricsPath = "/v1/metrics" livePath = "/livez" readyPath = "/readyz" ) @@ -45,7 +45,7 @@ func SetupHTTPListener() error { // listen httpHandler := handlerequestsv1.NewHTTPHandler() - rtr.HandleFunc(prometheusMmeticsPath, httpHandler.Metrics) + rtr.HandleFunc(prometheusMetricsPath, httpHandler.Metrics) rtr.HandleFunc(scanPath, httpHandler.Scan) rtr.HandleFunc(statusPath, httpHandler.Status) rtr.HandleFunc(resultsPath, httpHandler.Results) @@ -75,7 +75,7 @@ func loadTLSKey(certFile, keyFile string) (*tls.Certificate, error) { pair, err := tls.LoadX509KeyPair(certFile, keyFile) if err != nil { - return nil, fmt.Errorf("filed to load key pair: %v", err) + return nil, fmt.Errorf("failed to load key pair: %v", err) } return &pair, nil }