rm bin/1
This commit is contained in:
parent
c0e3145147
commit
7193bf4f20
|
@ -40,7 +40,7 @@
|
|||
-endif.
|
||||
|
||||
load(Opts) ->
|
||||
Topics = [{bin(Topic), QoS} || {Topic, QoS} <- Opts, ?IS_QOS(QoS)],
|
||||
Topics = [{iolist_to_binary(Topic), QoS} || {Topic, QoS} <- Opts, ?IS_QOS(QoS)],
|
||||
State = #state{topics = Topics, stored = lists:member(stored, Opts)},
|
||||
emqttd_broker:hook('client.connected', {?MODULE, client_connected},
|
||||
{?MODULE, client_connected, [State]}),
|
||||
|
@ -70,8 +70,3 @@ rep(<<"$u">>, undefined, Topic) ->
|
|||
rep(<<"$u">>, Username, Topic) ->
|
||||
emqttd_topic:feed_var(<<"$u">>, Username, Topic).
|
||||
|
||||
bin(B) when is_binary(B) ->
|
||||
B;
|
||||
bin(S) when is_list(S) ->
|
||||
list_to_binary(S).
|
||||
|
||||
|
|
Loading…
Reference in New Issue