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

Commit bbc380c

Browse files
committed
improve types
1 parent 9cbd4e1 commit bbc380c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

rebar.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{deps, []}.
77

88
{plugins, [
9-
{rebar3_gpb_plugin, "1.10.4"}
9+
{rebar3_gpb_plugin, "2.2.7"}
1010
]}.
1111

1212
{gpb_opts, [

src/antidote_pb_codec.erl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@
7878

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

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

0 commit comments

Comments
 (0)