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

Add primary datasource for web3 #10197

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Add primary datasource for web3 #10197

wants to merge 3 commits into from

Conversation

jnels124
Copy link
Contributor

Description:

  • configure a second datasource to point to primary instance

Related issue(s):

Fixes #

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@jnels124 jnels124 added this to the 0.123.0 milestone Jan 21, 2025
Copy link

codecov bot commented Jan 21, 2025

Codecov Report

Attention: Patch coverage is 0% with 56 lines in your changes missing coverage. Please review.

Project coverage is 92.05%. Comparing base (e564c78) to head (b9f2aae).

Files with missing lines Patch % Lines
...or/web3/config/PrimaryDatasourceConfiguration.java 0.00% 29 Missing ⚠️
...ra/mirror/web3/config/DatasourceConfiguration.java 0.00% 27 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #10197      +/-   ##
============================================
- Coverage     92.38%   92.05%   -0.33%     
- Complexity     5578     7929    +2351     
============================================
  Files           730      969     +239     
  Lines         24705    33195    +8490     
  Branches       3225     4179     +954     
============================================
+ Hits          22824    30559    +7735     
- Misses         1122     1656     +534     
- Partials        759      980     +221     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Value("${hedera.mirror.web3.db.host}") String defaultHost) {
var url = properties
.determineUrl()
.replaceAll("jdbc:postgresql://" + defaultHost, "jdbc:postgresql://" + primaryHost);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

replace is fine here . will fix

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.

1 participant