Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core/services/relay/evm/mercury/wsrpc: forward health and readiness from CacheSet #11592

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

jmank88
Copy link
Contributor

@jmank88 jmank88 commented Dec 16, 2023

I was exploring ways to lazy-init the Mercury.WSRPCPool, and so avoid starting when it is not necessary, when I noticed that it was not forwarding the sub-service health and readiness of the CacheSet. This is fairly minor, but notice that the cacheSet takes a read lock when HealthReport() is called, so this may impact performance in some way. (seems like we could minimize lock time by only fetching the values, then doing the loop outside of the lock?)

Copy link
Contributor

I see that you haven't updated any CHANGELOG files. Would it make sense to do so?

@jmank88 jmank88 force-pushed the cacheset-health-ready branch 2 times, most recently from 78e7342 to eb0705e Compare December 16, 2023 14:29
@jmank88 jmank88 force-pushed the cacheset-health-ready branch 2 times, most recently from f51b648 to ef5575e Compare December 19, 2023 19:37
@jmank88 jmank88 marked this pull request as ready for review December 19, 2023 19:47
samsondav
samsondav previously approved these changes Dec 19, 2023
Copy link
Collaborator

@samsondav samsondav left a comment

Choose a reason for hiding this comment

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

Thanks for catching this

@cl-sonarqube-production
Copy link

@jmank88 jmank88 added this pull request to the merge queue Dec 20, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 20, 2023
@jmank88 jmank88 added this pull request to the merge queue Dec 20, 2023
Merged via the queue into develop with commit fbe25a2 Dec 20, 2023
83 checks passed
@jmank88 jmank88 deleted the cacheset-health-ready branch December 20, 2023 15:11
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