Merge pull request #8728 from lafirest/fix/subs_api
fix(mgmt): fix `$queue` topic name error in this API return
This commit is contained in:
commit
c1adf04c9a
|
@ -3,6 +3,7 @@
|
||||||
## Bug fixes
|
## Bug fixes
|
||||||
|
|
||||||
* Remove the needless `will_msg` field from the client API. [#8721](https://github.com/emqx/emqx/pull/8721)
|
* Remove the needless `will_msg` field from the client API. [#8721](https://github.com/emqx/emqx/pull/8721)
|
||||||
|
* Fix `$queue` topic name error in management API return
|
||||||
|
|
||||||
# 5.0.5
|
# 5.0.5
|
||||||
|
|
||||||
|
|
|
@ -177,6 +177,8 @@ format({_Subscriber, Topic, Options}) ->
|
||||||
maps:with([qos, nl, rap, rh], Options)
|
maps:with([qos, nl, rap, rh], Options)
|
||||||
).
|
).
|
||||||
|
|
||||||
|
get_topic(Topic, #{share := <<"$queue">> = Group}) ->
|
||||||
|
filename:join([Group, Topic]);
|
||||||
get_topic(Topic, #{share := Group}) ->
|
get_topic(Topic, #{share := Group}) ->
|
||||||
filename:join([<<"$share">>, Group, Topic]);
|
filename:join([<<"$share">>, Group, Topic]);
|
||||||
get_topic(Topic, _) ->
|
get_topic(Topic, _) ->
|
||||||
|
|
Loading…
Reference in New Issue