Skip to content

Commit 1695d39

Browse files
committed
rabbit_db_vhost: Add timeout error to merge_metadata/2 spec
This error is already handled by the callers of `rabbit_vhost:update_metadata/3` (the CLI) and `rabbit_vhost:put_vhost/6` (see the parent commit) but was just missing from the spec.
1 parent 63b5100 commit 1695d39

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

deps/rabbit/src/rabbit_db_vhost.erl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ create_or_get_in_khepri(VHostName, VHost) ->
117117
-spec merge_metadata(VHostName, Metadata) -> Ret when
118118
VHostName :: vhost:name(),
119119
Metadata :: vhost:metadata(),
120-
Ret :: {ok, VHost} | {error, {no_such_vhost, VHostName}},
120+
Ret :: {ok, VHost} |
121+
{error, {no_such_vhost, VHostName}} |
122+
rabbit_khepri:timeout_error(),
121123
VHost :: vhost:vhost().
122124
%% @doc Updates the metadata of an existing virtual host record.
123125
%%

0 commit comments

Comments
 (0)