Skip to content

Commit

Permalink
Remove unused timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
lpgauth committed Sep 14, 2016
1 parent d847bca commit f79438e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions include/shackle.hrl
Expand Up @@ -3,8 +3,7 @@
client :: client(),
pid :: undefined | pid(),
request :: term(),
request_id :: request_id(),
timestamp :: erlang:timestamp()
request_id :: request_id()
}).

-record(pool_options, {
Expand Down
4 changes: 1 addition & 3 deletions src/shackle.erl
Expand Up @@ -42,16 +42,14 @@ cast(PoolName, Request) ->
{ok, request_id()} | {error, atom()}.

cast(PoolName, Request, Pid) ->
Timestamp = os:timestamp(),
case shackle_pool:server(PoolName) of
{ok, Client, Server} ->
RequestId = {Server, make_ref()},
Server ! #cast {
client = Client,
pid = Pid,
request = Request,
request_id = RequestId,
timestamp = Timestamp
request_id = RequestId
},
{ok, RequestId};
{error, Reason} ->
Expand Down

0 comments on commit f79438e

Please sign in to comment.