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(emqx_sn_gateway): Ensure binary client ID #170

Merged
merged 1 commit into from
Nov 9, 2020

Conversation

zmstone
Copy link
Member

@zmstone zmstone commented Nov 6, 2020

The emqx_message:make API requires first argument to be binary.

Not entirely sure if this tuple client ID has its special use case though.

@zmstone zmstone requested a review from HJianBo November 6, 2020 18:36
@HJianBo
Copy link
Member

HJianBo commented Nov 7, 2020

The tuple client ID has been deprecated on the previous (probably after v4.0.). However, I think it's fine to just use the ClientID here, there's no need to use a specialised Username

src/emqx_sn_gateway.erl Outdated Show resolved Hide resolved
The emqx_message:make API requires first argument to be binary.
Also, tuple client ID has been deprecated.
@zmstone zmstone changed the title refactor(emqx_sn_gateway): Make binary client ID refactor(emqx_sn_gateway): Ensure binary client ID Nov 7, 2020
@HJianBo HJianBo added this to the 4.2.3 milestone Nov 9, 2020
@HJianBo HJianBo added the bug label Nov 9, 2020
@HJianBo HJianBo merged commit 2fbca2e into emqx:master Nov 9, 2020
HJianBo added a commit that referenced this pull request Nov 9, 2020
turtleDeng pushed a commit that referenced this pull request Nov 9, 2020
HJianBo added a commit that referenced this pull request Nov 9, 2020
HJianBo added a commit that referenced this pull request Nov 10, 2020
tigercl pushed a commit that referenced this pull request Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants