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

Refactor chain-specific database location code #1582

Merged
merged 2 commits into from
Jun 29, 2022
Merged

Conversation

tyshko5
Copy link
Contributor

@tyshko5 tyshko5 commented Jun 27, 2022

Summary of changes
Changes introduced in this pull request:

As approach changed from db to chain, I've added chain_path function, so that the single source of truth for various db patches is established. Therefore db_path and sled_path were created

Reference issue to close (if applicable)

Closes #1580

Other information and links

@tyshko5 tyshko5 changed the title Metrics can't find chain-specific database. #1580 Metrics can't find chain-specific database. Closes #1580 Jun 27, 2022
@tyshko5 tyshko5 changed the title Metrics can't find chain-specific database. Closes #1580 Metrics can't find chain-specific database. closes #1580 Jun 27, 2022
@tyshko5 tyshko5 changed the title Metrics can't find chain-specific database. closes #1580 Metrics can't find chain-specific database closes #1580 Jun 27, 2022
@lemmih lemmih changed the title Metrics can't find chain-specific database closes #1580 Refactor chain-specific database location code Jun 27, 2022
@codecov
Copy link

codecov bot commented Jun 27, 2022

Codecov Report

Merging #1582 (2b261b7) into main (827746a) will increase coverage by 0.19%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #1582      +/-   ##
==========================================
+ Coverage   34.22%   34.41%   +0.19%     
==========================================
  Files         209      209              
  Lines       24034    23883     -151     
==========================================
- Hits         8225     8219       -6     
+ Misses      15809    15664     -145     
Impacted Files Coverage Δ
forest/src/daemon.rs 0.44% <0.00%> (+<0.01%) ⬆️
blockchain/message_pool/src/msgpool/utils.rs 53.57% <0.00%> (-7.15%) ⬇️
blockchain/message_pool/src/msgpool/msg_pool.rs 65.55% <0.00%> (-0.40%) ⬇️
blockchain/message_pool/src/msgpool/mod.rs 87.62% <0.00%> (-0.28%) ⬇️
ipld/amt/src/node.rs 84.71% <0.00%> (+16.30%) ⬆️
encoding/src/hash.rs 100.00% <0.00%> (+59.34%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 827746a...2b261b7. Read the comment docs.

@tyshko5 tyshko5 marked this pull request as ready for review June 27, 2022 09:55
@lemmih
Copy link
Contributor

lemmih commented Jun 27, 2022

Code looks good. Could you add a summary of the changes to the PR?

@LesnyRumcajs LesnyRumcajs merged commit df52270 into main Jun 29, 2022
@LesnyRumcajs LesnyRumcajs deleted the tyshko5/issue-1580 branch June 29, 2022 08:35
tyshko5 added a commit that referenced this pull request Jun 29, 2022
* refactor dp path

* fix cfg

Co-authored-by: tyshkor <[email protected]>
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.

Metrics can't find chain-specific database.
4 participants