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(sync): Move ProgressTracker initialization to dedicated method #8074

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

VolodymyrBg
Copy link

Resolves # N/A

Changes

  • Moved initialization logic from constructor to a dedicated Initialize() method in ProgressTracker
  • Improved code organization by separating initialization concerns
  • Removed TODO comment after implementing the suggested improvement

Types of changes

What types of changes does your code introduce?

  • Bugfix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (a change that causes existing functionality not to work as expected)
  • Optimization
  • Refactoring
  • Documentation update
  • Build-related changes
  • Other: Description

Testing

Requires testing

  • Yes
  • No

If yes, did you write tests?

  • Yes
  • No

Documentation

Requires documentation update

  • Yes
  • No

Requires explanation in Release Notes

  • Yes
  • No

Remarks

This refactoring improves code maintainability by following the Single Responsibility Principle. The initialization logic is now encapsulated in a dedicated method, making the code more modular and easier to understand. This change is purely internal and doesn't affect the public API or behavior of the ProgressTracker class.

Move initialization logic from the constructor to a dedicated Initialize method in 
ProgressTracker. This improves code organization by separating concerns and makes 
the initialization process more maintainable.

- Create new Initialize method to encapsulate initialization logic
- Move SetupAccountRangePartition and GetSyncProgress calls to Initialize
- Keep constructor focused on parameter validation and field initialization
- Remove TODO comment as the suggested improvement has been implemented
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