Skip to content

Commit af50d63

Browse files
the-mikedavismergify[bot]
authored andcommitted
rabbit_db_vhost: Declare no-return in create_or_get/3 spec
`create_or_get_in_khepri/2` throws errors like the `rabbit_khepri:timeout_error()`. Callers of `create_or_get/3` like `rabbit_vhost:do_add/3` and its callers handle the throw with a `try`/ `catch` block and return the error tuple, which is then handled by their callers. (cherry picked from commit e459ee5)
1 parent be406d8 commit af50d63

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
@@ -62,7 +62,7 @@
6262
VHostName :: vhost:name(),
6363
Limits :: vhost:limits(),
6464
Metadata :: vhost:metadata(),
65-
Ret :: {existing | new, VHost},
65+
Ret :: {existing | new, VHost} | no_return(),
6666
VHost :: vhost:vhost().
6767
%% @doc Writes a virtual host record if it doesn't exist already or returns
6868
%% the existing one.

0 commit comments

Comments
 (0)