Skip to content

Commit

Permalink
Merge pull request #9 from lpgauth/fix_error
Browse files Browse the repository at this point in the history
Fix bad match
  • Loading branch information
lpgauth committed Jan 8, 2016
2 parents 5b61591 + 69d07b0 commit 3e8dff1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/shackle.erl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ cast(PoolName, Request) ->
cast(PoolName, Request, self()).

-spec cast(pool_name(), term(), pid()) ->
{ok, request_id()} | {error, backlog_full}.
{ok, request_id()} | {error, atom()}.

cast(PoolName, Request, Pid) ->
Timestamp = os:timestamp(),
Expand All @@ -49,8 +49,8 @@ cast(PoolName, Request, Pid) ->
timestamp = Timestamp
},
{ok, RequestId};
{error, backlog_full} ->
{error, backlog_full}
{error, Reason} ->
{error, Reason}
end.

-spec handle_timing(cast()) -> ok.
Expand Down

0 comments on commit 3e8dff1

Please sign in to comment.