Skip to content

Commit 0106f30

Browse files
the-mikedavismergify[bot]
authored andcommitted
rabbit_db_exchange: Reflect possible failure in update/2 spec
(cherry picked from commit 80f599b)
1 parent 6e7d34d commit 0106f30

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

deps/rabbit/src/rabbit_db_exchange.erl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,10 @@ count_in_khepri() ->
265265
%% update().
266266
%% -------------------------------------------------------------------
267267

268-
-spec update(ExchangeName, UpdateFun) -> ok when
268+
-spec update(ExchangeName, UpdateFun) -> Ret when
269269
ExchangeName :: rabbit_exchange:name(),
270-
UpdateFun :: fun((Exchange) -> Exchange).
270+
UpdateFun :: fun((Exchange) -> Exchange),
271+
Ret :: ok | rabbit_khepri:timeout_error().
271272
%% @doc Updates an existing exchange record using the result of
272273
%% `UpdateFun'.
273274
%%

0 commit comments

Comments
 (0)