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

ZMS-187: Rewrite addMessage, moveMessage to async/await #779

Merged
merged 19 commits into from
Mar 24, 2025
Merged

Conversation

NickOvt
Copy link
Contributor

@NickOvt NickOvt commented Jan 30, 2025

  1. Rewrite add message. Add addAsync rewrite add to use async/await.
  2. Rewrite move messages. Add moveAsync rewrite move to use async/await.

Previously they were fully callback based, which made it harder to read and understand. Current changes should have improved the readibility as it made code more linear.
There are still some function-in-function spots, that may be fixed with later commits and more thorough refactoring.

@NickOvt NickOvt requested a review from andris9 January 30, 2025 08:55
@NickOvt NickOvt self-assigned this Jan 30, 2025
@NickOvt NickOvt requested a review from andris9 February 11, 2025 10:41
@NickOvt NickOvt requested a review from andris9 February 17, 2025 08:26
@NickOvt NickOvt changed the title ZMS-187 ZMS-187: Rewrite addMessage, moveMessage to async/await Feb 18, 2025
@NickOvt NickOvt requested a review from andris9 February 19, 2025 13:47
@NickOvt
Copy link
Contributor Author

NickOvt commented Feb 19, 2025

Running same tests locally on v18 node results in positive result.

@NickOvt NickOvt requested a review from andris9 February 26, 2025 13:53
@NickOvt NickOvt requested review from andris9 and removed request for andris9 March 14, 2025 09:43
@NickOvt NickOvt requested a review from andris9 March 17, 2025 09:58
@NickOvt NickOvt merged commit d91f112 into master Mar 24, 2025
6 checks passed
@NickOvt NickOvt deleted the ZMS-187 branch March 24, 2025 08:44
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.

2 participants