Skip to content

[probes.serverutils] Use context in ServeContext. - #781

Merged
manugarg merged 1 commit into
cloudprober:masterfrom
stvnrhodes:servecontext
Jun 19, 2024
Merged

manugarg merged 1 commit into
cloudprober:masterfrom
stvnrhodes:servecontext

Conversation

@stvnrhodes

Copy link
Copy Markdown
Contributor

I noticed that https://pkg.go.dev/github.com/cloudprober/cloudprober/probes/external/serverutils#ServeContext doesn't take a context. This has been true since it was added in #695, so it looks like an oversight. This change updates the function to properly take a context (and to work with its example code.

I noticed that https://pkg.go.dev/github.com/cloudprober/cloudprober/probes/external/serverutils#ServeContext doesn't take a context. This has been true since it was added in cloudprober#695, so it looks like an oversight. This change updates the function to properly take a context (and to work with its example code.
@stvnrhodes
stvnrhodes marked this pull request as ready for review June 18, 2024 15:15
@manugarg

Copy link
Copy Markdown
Contributor

Ah, you're right. It does seem like an oversight. Thanks!

@manugarg
manugarg merged commit fd3f755 into cloudprober:master Jun 19, 2024
@manugarg manugarg added this to the v0.13.6 milestone Jun 19, 2024
@manugarg manugarg changed the title Use context in ServeContext. [probes.serverutils] Use context in ServeContext. Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants