Skip to content

Commit 633c2d1

Browse files
committed
change comment for multiTargetHandler
Signed-off-by: Dmitry Ponomaryov <[email protected]>
1 parent b3c31e1 commit 633c2d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exporter/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func RunWebServer(opts *ServerOpts, exporters []*Exporter, exporterOpts *Opts, l
117117
}
118118

119119
// multiTargetHandler returns a handler that scrapes metrics from a target specified by the 'target' query parameter.
120-
// It completes the URI and caches dynamic exporters by target.
120+
// It validates the URI and caches dynamic exporters by target.
121121
func multiTargetHandler(serverMap ServerMap, exporterOpts *Opts, exportersCache map[string]*Exporter, cacheMutex *sync.Mutex, logger *slog.Logger) http.HandlerFunc {
122122
return func(w http.ResponseWriter, r *http.Request) {
123123
targetHost := r.URL.Query().Get("target")

0 commit comments

Comments
 (0)