Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

refactor(BUX-426): remove unused BroadcastClientApis & appropriate With function #516

Merged
merged 1 commit into from
Dec 27, 2023

Conversation

chris-4chain
Copy link
Contributor

@chris-4chain chris-4chain commented Dec 27, 2023

Pull Request Checklist

  • πŸ“– I created my PR using provided : CODE_STANDARDS
  • πŸ“– I have read the short Code of Conduct: CODE_OF_CONDUCT
  • 🏠 I tested my changes locally.
  • βœ… I have provided tests for my changes.
  • πŸ“ I have used conventional commits.
  • πŸ“— I have updated any related documentation.
  • πŸ’Ύ PR was issued based on the Github or Jira issue.

During tests I found out that the BroadcastClientApis variable inside chainstate config is unused and can be removed along with the WithBroadcastClientAPIs function. So I did it. Without removed code, the aplication still compiles, tests pass and it works with bux-server.

If the existence of this config variable has some future/planned usage - just cancel this PR.

Copy link
Contributor

mergify bot commented Dec 27, 2023

Welcome to our open-source project @chris-4chain! πŸ’˜

Copy link

codecov bot commented Dec 27, 2023

Codecov Report

All modified and coverable lines are covered by tests βœ…

Comparison is base (224fc04) 53.10% compared to head (0bf182f) 53.12%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #516      +/-   ##
==========================================
+ Coverage   53.10%   53.12%   +0.01%     
==========================================
  Files         107      107              
  Lines       11140    11127      -13     
==========================================
- Hits         5916     5911       -5     
+ Misses       4777     4769       -8     
  Partials      447      447              
Flag Coverage Ξ”
unittests 53.12% <ΓΈ> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Ξ”
chainstate/client.go 78.90% <ΓΈ> (-0.17%) ⬇️
chainstate/client_options.go 76.05% <ΓΈ> (+1.38%) ⬆️
client_options.go 75.29% <ΓΈ> (+0.71%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Ξ” = absolute <relative> (impact), ΓΈ = not affected, ? = missing data
Powered by Codecov. Last update 224fc04...0bf182f. Read the comment docs.

@chris-4chain chris-4chain merged commit 1c5c50b into master Dec 27, 2023
11 checks passed
@chris-4chain chris-4chain deleted the refactor-426-remove-WithBroadcastClientAPIs branch December 27, 2023 08:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants