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 return value of functions that related to a slot migration #1205

Merged
merged 1 commit into from
Dec 26, 2022

Conversation

torwig
Copy link
Contributor

@torwig torwig commented Dec 24, 2022

Make functions return the value of type Status instead of bool.
Log errors on a higher level by passing error messages to the caller via Status.
Tidy the constructor of the SlotMigrate class.

@PragmaTwice The .Prefixed method of the Status type helped me a lot to make this refactoring. Thank you :)

@git-hulk git-hulk merged commit b59c58e into apache:unstable Dec 26, 2022
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.

3 participants