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

fix(cli): fix bench sub duplicate logs #1669

Merged
merged 1 commit into from
May 24, 2024
Merged

fix(cli): fix bench sub duplicate logs #1669

merged 1 commit into from
May 24, 2024

Conversation

ysfscream
Copy link
Member

What is the current behavior?

The error was caused by connection delays, which caused multiple subscription callbacks to trigger log messages simultaneously. Adding the subscribedCount variable and the isLogged flag ensures that the log message is only executed once.

image

What is the new behavior?

image

@ysfscream ysfscream added enhancement New feature or request fix Fix bug or issues CLI MQTTX CLI labels May 24, 2024
@ysfscream ysfscream added this to the v1.10.0 milestone May 24, 2024
@ysfscream ysfscream requested a review from Red-Asuka May 24, 2024 07:27
@ysfscream ysfscream self-assigned this May 24, 2024
@Red-Asuka Red-Asuka merged commit 68626cf into main May 24, 2024
5 checks passed
@Red-Asuka Red-Asuka deleted the ysf/cli branch May 24, 2024 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI MQTTX CLI enhancement New feature or request fix Fix bug or issues
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants