Skip to content

grpc: implement OnHealthy#8686

Merged
jsha merged 3 commits intomainfrom
healthy-callback
Mar 25, 2026
Merged

grpc: implement OnHealthy#8686
jsha merged 3 commits intomainfrom
healthy-callback

Conversation

@jsha
Copy link
Copy Markdown
Contributor

@jsha jsha commented Mar 24, 2026

This allows service implementations to report their health as a callback, rather than by polling. That, in turn, allows services to become healthy more quickly after startup.

This allows service implementations to report their health as a callback, rather
than by polling. That, in turn, allows services to become healthy more quickly
after startup.
@jsha jsha marked this pull request as ready for review March 24, 2026 23:08
@jsha jsha requested a review from a team as a code owner March 24, 2026 23:08
@jsha jsha requested a review from aarongable March 24, 2026 23:08
@beautifulentropy beautifulentropy self-requested a review March 25, 2026 20:22
Comment thread ratelimits/limit.go Outdated
Comment on lines +415 to +416
l.RLock()
defer l.RUnlock()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe you want l.Lock() and l.Unlock() respectively here.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It appears that you missed these in your review comments commit.

Comment thread ratelimits/limit.go Outdated
@jsha
Copy link
Copy Markdown
Contributor Author

jsha commented Mar 25, 2026

Well spotted, thanks!

Comment thread ratelimits/limit.go
Comment thread ratelimits/limit.go Outdated
Comment on lines +415 to +416
l.RLock()
defer l.RUnlock()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It appears that you missed these in your review comments commit.

@beautifulentropy beautifulentropy self-requested a review March 25, 2026 21:19
@jsha jsha merged commit dcadb23 into main Mar 25, 2026
29 of 31 checks passed
@jsha jsha deleted the healthy-callback branch March 25, 2026 23:01
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