Skip to content

Commit be044c8

Browse files
the-mikedavismergify[bot]
authored andcommitted
rabbit_db_vhost: Add no_return() to set_tags/2 spec
`set_tags/2` throws for database errors. This is benign since it's caught by the CLI (the only caller) and turned into a Khepri-specific error. (cherry picked from commit 4fd77d5)
1 parent 2160b92 commit be044c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/rabbit/src/rabbit_db_vhost.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ merge_metadata_in_khepri(VHostName, Metadata) ->
190190
-spec set_tags(VHostName, Tags) -> VHost when
191191
VHostName :: vhost:name(),
192192
Tags :: [vhost:tag() | binary() | string()],
193-
VHost :: vhost:vhost().
193+
VHost :: vhost:vhost() | no_return().
194194
%% @doc Sets the tags of an existing virtual host record.
195195
%%
196196
%% @returns the updated virtual host record if the record existed and the

0 commit comments

Comments
 (0)