Call 'tokens/1' instead of 'words/1'

This commit is contained in:
Feng Lee 2019-03-13 15:33:57 +08:00 committed by turtleDeng
parent a4550a8fc4
commit ba719a896d
1 changed files with 0 additions and 6 deletions

View File

@ -157,11 +157,6 @@ levels(Topic) when is_binary(Topic) ->
tokens(Topic) ->
binary:split(Topic, <<"/">>, [global]).
%% @doc Split topic to tokens.
-spec(tokens(topic()) -> list(binary())).
tokens(Topic) ->
binary:split(Topic, <<"/">>, [global]).
%% @doc Split Topic Path to Words
-spec(words(topic()) -> words()).
words(Topic) when is_binary(Topic) ->
@ -226,4 +221,3 @@ parse(Topic, Options = #{qos := QoS}) ->
{Topic, Options#{rc => QoS}};
parse(Topic, Options) ->
{Topic, Options}.