Skip to content

Commit

Permalink
Merge pull request #6 from lpgauth/fix_specs
Browse files Browse the repository at this point in the history
Fix specs
  • Loading branch information
lpgauth committed Jan 8, 2016
2 parents aa71c75 + 0c1a1f4 commit 5b61591
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/shackle.erl
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
]).

%% public
-spec call(pool_name(), term()) -> {ok, term()} | {error, term()}.
-spec call(pool_name(), term()) -> term() | {error, term()}.

call(PoolName, Request) ->
call(PoolName, Request, ?DEFAULT_TIMEOUT).

-spec call(atom(), term(), timeout()) -> {ok, term()} | {error, term()}.
-spec call(atom(), term(), timeout()) -> term() | {error, term()}.

call(PoolName, Request, Timeout) ->
case cast(PoolName, Request) of
Expand Down Expand Up @@ -67,13 +67,13 @@ handle_timing(#cast {
Client:handle_timing(Request, Timing3).

-spec receive_response(request_id()) ->
{ok, term()} | {error, term()}.
term() | {error, term()}.

receive_response(RequestId) ->
receive_response(RequestId, ?DEFAULT_TIMEOUT).

-spec receive_response(request_id(), timeout()) ->
{ok, term()} | {error, term()}.
term() | {error, term()}.

receive_response({PoolName, _} = RequestId, Timeout) ->
Timestamp = os:timestamp(),
Expand Down

0 comments on commit 5b61591

Please sign in to comment.