From 867ac4d33f50ce2628f68625568ebc25c5e38d97 Mon Sep 17 00:00:00 2001 From: dat Date: Thu, 23 Nov 2023 16:22:31 +0700 Subject: [PATCH] Add error with reason for modify_queue/2 spec (#42) --- src/jobs_server.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jobs_server.erl b/src/jobs_server.erl index a65b20c..186aefc 100644 --- a/src/jobs_server.erl +++ b/src/jobs_server.erl @@ -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}).