fix(emqx_router): return correct type from lookup_routes/1 (v2 schema)

This commit is contained in:
Serge Tupchii 2024-05-21 16:28:59 +03:00
parent 4f341bef8b
commit 0db6b8dc54
1 changed files with 1 additions and 1 deletions

View File

@ -512,7 +512,7 @@ lookup_routes_v2(Topic) ->
case emqx_topic:wildcard(Topic) of case emqx_topic:wildcard(Topic) of
true -> true ->
Pat = #routeidx{entry = emqx_topic_index:make_key(Topic, '$1')}, Pat = #routeidx{entry = emqx_topic_index:make_key(Topic, '$1')},
[Dest || [Dest] <- ets:match(?ROUTE_TAB_FILTERS, Pat)]; [#route{topic = Topic, dest = Dest} || [Dest] <- ets:match(?ROUTE_TAB_FILTERS, Pat)];
false -> false ->
lookup_route_tab(Topic) lookup_route_tab(Topic)
end. end.