Skip to content

Commit 1d0a45b

Browse files
dumbbellmergify[bot]
authored andcommitted
rabbit_db: Fix rabbit_db_msup:update_all/2 spec
[Why] It can return an error. (cherry picked from commit 913bd9f)
1 parent a97c277 commit 1d0a45b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

deps/rabbit/src/rabbit_db_msup.erl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,10 @@ find_mirror_in_khepri(Group, Id) ->
226226
%% update_all().
227227
%% -------------------------------------------------------------------
228228

229-
-spec update_all(Overall, Overall) -> [ChildSpec] when
229+
-spec update_all(Overall, Overall) -> [ChildSpec] | Error when
230230
Overall :: pid(),
231-
ChildSpec :: supervisor2:child_spec().
231+
ChildSpec :: supervisor2:child_spec(),
232+
Error :: {error, any()}.
232233

233234
update_all(Overall, OldOverall) ->
234235
rabbit_khepri:handle_fallback(

0 commit comments

Comments
 (0)