Skip to content

Commit

Permalink
Merge pull request #3 from lpgauth/dev
Browse files Browse the repository at this point in the history
0.1.1
  • Loading branch information
lpgauth committed Apr 1, 2015
2 parents 7bc747f + 65bb40b commit 406f881
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/marina.app.src
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{application, marina, [
{description, "cassandra client"},
{vsn, "0.1.0"},
{vsn, "0.1.1"},
{registered, []},
{applications, [
kernel,
Expand Down
4 changes: 2 additions & 2 deletions src/marina.erl
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ async_query(Query, ConsistencyLevel, Flags, Pid) ->
async_reusable_query(Query, Values, ConsistencyLevel, Flags, Pid, Timeout) ->
case marina_cache:get(Query) of
{ok, StatementId} ->
async_execute(StatementId, Values, Pid, ConsistencyLevel, Flags);
async_execute(StatementId, Values, ConsistencyLevel, Flags, Pid);
{error, not_found} ->
case prepare(Query, Timeout) of
{ok, StatementId} ->
marina_cache:put(Query, StatementId),
async_execute(StatementId, Values, Pid, ConsistencyLevel, Flags);
async_execute(StatementId, Values, ConsistencyLevel, Flags, Pid);
{error, Reason} ->
{error, Reason}
end
Expand Down

0 comments on commit 406f881

Please sign in to comment.