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 #779

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

ZMS-187 #779

wants to merge 9 commits into from

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
lib/message-handler.js Outdated Show resolved Hide resolved
lib/message-handler.js Show resolved Hide resolved
lib/message-handler.js Outdated Show resolved Hide resolved
lib/message-handler.js Show resolved Hide resolved
@NickOvt NickOvt requested a review from andris9 February 11, 2025 10:41
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