fix function clause
This commit is contained in:
parent
fdfdf494f5
commit
c803ce0d7a
|
@ -25,6 +25,7 @@
|
||||||
-author('feng@slimpp.io').
|
-author('feng@slimpp.io').
|
||||||
|
|
||||||
-include("emqtt.hrl").
|
-include("emqtt.hrl").
|
||||||
|
-include("emqtt_topic.hrl").
|
||||||
|
|
||||||
-behaviour(gen_server).
|
-behaviour(gen_server).
|
||||||
|
|
||||||
|
@ -125,7 +126,7 @@ match(Topics) ->
|
||||||
lists:flatten([match(Topic, RetainedTopics) || Topic <- Topics]).
|
lists:flatten([match(Topic, RetainedTopics) || Topic <- Topics]).
|
||||||
|
|
||||||
match(Topic, RetainedTopics) ->
|
match(Topic, RetainedTopics) ->
|
||||||
case emqtt_topic:type(Topic) of
|
case emqtt_topic:type(#topic{name=Topic}) of
|
||||||
direct -> %% FIXME
|
direct -> %% FIXME
|
||||||
[Topic];
|
[Topic];
|
||||||
wildcard ->
|
wildcard ->
|
||||||
|
|
Loading…
Reference in New Issue