Commit 7750422a authored by PingWang's avatar PingWang

Fix function comment

parent bb4fbc27
...@@ -291,7 +291,7 @@ func newMetricsHandler(config *kubeschedulerconfig.KubeSchedulerConfiguration) h ...@@ -291,7 +291,7 @@ func newMetricsHandler(config *kubeschedulerconfig.KubeSchedulerConfiguration) h
return pathRecorderMux return pathRecorderMux
} }
// newHealthzServer creates a healthz server from the config, and will also // newHealthzHandler creates a healthz server from the config, and will also
// embed the metrics handler if the healthz and metrics address configurations // embed the metrics handler if the healthz and metrics address configurations
// are the same. // are the same.
func newHealthzHandler(config *kubeschedulerconfig.KubeSchedulerConfiguration, separateMetrics bool) http.Handler { func newHealthzHandler(config *kubeschedulerconfig.KubeSchedulerConfiguration, separateMetrics bool) http.Handler {
......
...@@ -55,7 +55,7 @@ type PathRecorderMux struct { ...@@ -55,7 +55,7 @@ type PathRecorderMux struct {
pathStacks map[string]string pathStacks map[string]string
} }
// pathHandler is an http.Handler that will satify requests first by exact match, then by prefix, // pathHandler is an http.Handler that will satisfy requests first by exact match, then by prefix,
// then by notFoundHandler // then by notFoundHandler
type pathHandler struct { type pathHandler struct {
// muxName is used for logging so you can trace requests through // muxName is used for logging so you can trace requests through
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment