From ec541dbcfa0dc2ff4700e9b5c79389c340ddb2f9 Mon Sep 17 00:00:00 2001 From: Sam Tavakoli Date: Mon, 22 Jan 2018 15:33:01 +0000 Subject: [PATCH] Correcting type spec --- src/gascheduler.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gascheduler.erl b/src/gascheduler.erl index afb254e..4809eb7 100644 --- a/src/gascheduler.erl +++ b/src/gascheduler.erl @@ -120,7 +120,7 @@ set_retry_timeout(Name, RetryTimeout) -> set_max_workers(Name, Workers) -> gen_server:call(Name, {set_max_workers, Workers}). --spec get_max_workers(atom()) -> non_neg_integer(). +-spec get_max_workers(atom()) -> {ok, non_neg_integer()}. get_max_workers(Name) -> gen_server:call(Name, get_max_workers).