Skip to content

Commit 18a60f2

Browse files
committed
Update comments in mcp-nats.go to clarify NATS context usage
1 parent 816fe2d commit 18a60f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mcp-nats.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func urlFromEnv() (string, string) {
4343
return u, ""
4444
}
4545

46-
// WithNatsURL adds the Grafana URL to the context.
46+
// WithNatsURL adds the Nats URL to the context.
4747
func WithNatsURL(ctx context.Context, url string) context.Context {
4848
return context.WithValue(ctx, natsURLKey{}, url)
4949
}
@@ -81,7 +81,7 @@ func natsCredsFromContext(ctx context.Context) (map[string]common.NATSCreds, err
8181
return creds, nil
8282
}
8383

84-
// ExtractNatsInfoFromHeaders is a SSEContextFunc that extracts Grafana configuration
84+
// ExtractNatsInfoFromHeaders is a SSEContextFunc that extracts nats configuration
8585
// from request headers and injects a configured client into the context.
8686
var ExtractNatsInfoFromHeaders server.SSEContextFunc = func(ctx context.Context, req *http.Request) context.Context {
8787
if ctx == nil {

0 commit comments

Comments
 (0)