Skip to content

Commit

Permalink
Add error with reason for modify_queue/2 spec (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
dat committed Nov 23, 2023
1 parent ffc47e4 commit 867ac4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jobs_server.erl
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ dequeue(Type, N) when N==infinity; is_integer(N), N > 0 ->
add_queue(Name, Options) ->
call(?SERVER, {add_queue, Name, Options}).

-spec modify_queue(queue_name(), q_opts()) -> ok.
-spec modify_queue(queue_name(), q_opts()) -> ok | {error, any()}.
%%
modify_queue(Name, Options) ->
call(?SERVER, {modify_queue, Name, Options}).
Expand Down

0 comments on commit 867ac4d

Please sign in to comment.