Skip to content

Conversation

cody-littley
Copy link
Contributor

Why are these changes needed?

Do not initialize grpc connections on the main batch creation goroutine. In extreme cases, grpc connections can take several seconds to set up.

@cody-littley cody-littley self-assigned this Jul 16, 2025
@cody-littley cody-littley marked this pull request as ready for review July 16, 2025 15:23
@cody-littley cody-littley requested review from litt3 and ian-shim July 16, 2025 15:25
litt3
litt3 previously approved these changes Jul 16, 2025

d.pool.Submit(func() {
defer validatorProbe.End()
Copy link
Contributor

Choose a reason for hiding this comment

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

this defer should be moved to the top of the func

Copy link
Contributor Author

@cody-littley cody-littley Jul 16, 2025

Choose a reason for hiding this comment

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

Good catch, done

@cody-littley cody-littley merged commit 7f5f0ec into master Jul 16, 2025
16 checks passed
@cody-littley cody-littley deleted the connect-in-goroutine branch July 16, 2025 17:05
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.

3 participants