fix(mgmt): fix `$queue` topic name error in this API return

This commit is contained in:
firest 2022-08-15 17:21:39 +08:00
parent 4fa961caeb
commit 48a761c406
1 changed files with 2 additions and 0 deletions

View File

@ -177,6 +177,8 @@ format({_Subscriber, Topic, Options}) ->
maps:with([qos, nl, rap, rh], Options)
).
get_topic(Topic, #{share := <<"$queue">> = Group}) ->
filename:join([Group, Topic]);
get_topic(Topic, #{share := Group}) ->
filename:join([<<"$share">>, Group, Topic]);
get_topic(Topic, _) ->