Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

Commit

Permalink
improve types
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzeller committed May 14, 2018
1 parent 9cbd4e1 commit bbc380c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{deps, []}.

{plugins, [
{rebar3_gpb_plugin, "1.10.4"}
{rebar3_gpb_plugin, "2.2.7"}
]}.

{gpb_opts, [
Expand Down
6 changes: 3 additions & 3 deletions src/antidote_pb_codec.erl
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@

-type response() ::
{error_response, {ErrorCode :: error_code(), Message :: binary()}}
| {start_transaction_resp, Resp :: {ok, TxId :: binary()} | {error, Reason::error_code()}}
| {start_transaction_response, Resp :: {ok, TxId :: binary()} | {error, Reason::error_code()}}
| {commit_response, {ok, CommitTime :: any()} | {error, Reason :: error_code()}}
| {static_read_objects_resp, {ok, Results :: list(), CommitTime :: binary()}}
| {read_objects_resp, Resp :: list()}.
| {static_read_objects_response, {ok, Results :: [{bound_object(), read_result()}], CommitTime :: binary()}}
| {read_objects_response, Resp :: [{bound_object(), read_result()}]}.

-type message() :: request() | response().

Expand Down

0 comments on commit bbc380c

Please sign in to comment.