Skip to content

Commit

Permalink
Merge pull request #8342 from rabbitmq/defaultQTypeUpdate
Browse files Browse the repository at this point in the history
Update default queue type with http api
  • Loading branch information
michaelklishin authored May 26, 2023
2 parents 6402119 + 3c61f41 commit 4ea3709
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deps/rabbit/src/rabbit_vhost.erl
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,9 @@ update_metadata(Name, Metadata0, ActingUser) ->
Error
end.

-spec update(vhost:name(), binary(), [atom()], rabbit_types:username()) -> rabbit_types:ok_or_error(any()).
update(Name, Description, Tags, ActingUser) ->
Metadata = #{description => Description, tags => Tags},
-spec update(vhost:name(), binary(), [atom()], rabbit_queue_type:queue_type() | 'undefined', rabbit_types:username()) -> rabbit_types:ok_or_error(any()).
update(Name, Description, Tags, DefaultQueueType, ActingUser) ->
Metadata = #{description => Description, tags => Tags, default_queue_type => DefaultQueueType},
update_metadata(Name, Metadata, ActingUser).

-spec delete(vhost:name(), rabbit_types:username()) -> rabbit_types:ok_or_error(any()).
Expand Down Expand Up @@ -325,7 +325,7 @@ put_vhost(Name, Description, Tags0, DefaultQueueType, Trace, Username) ->
rabbit_log:debug("Parsed tags ~tp to ~tp", [Tags, ParsedTags]),
Result = case exists(Name) of
true ->
update(Name, Description, ParsedTags, Username);
update(Name, Description, ParsedTags, DefaultQueueType, Username);
false ->
Metadata0 = #{description => Description,
tags => ParsedTags},
Expand Down

0 comments on commit 4ea3709

Please sign in to comment.