Skip to content

Commit

Permalink
chore: add read index
Browse files Browse the repository at this point in the history
Signed-off-by: bsbds <[email protected]>
  • Loading branch information
bsbds committed Sep 25, 2024
1 parent fc3911a commit 04cf5c1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/curp-command.proto
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,17 @@ message LeaseKeepAliveMsg {
uint64 client_id = 1;
}

message ReadIndexRequest {}

message ReadIndexResponse {
uint64 term = 1;
}

service Protocol {
// Unary
rpc ProposeStream(ProposeRequest) returns (stream OpResponse);
rpc Record(RecordRequest) returns (RecordResponse);
rpc ReadIndex(ReadIndexRequest) returns (ReadIndexResponse);
rpc ProposeConfChange(ProposeConfChangeRequest)
returns (ProposeConfChangeResponse);
rpc Publish(PublishRequest) returns (PublishResponse);
Expand Down

0 comments on commit 04cf5c1

Please sign in to comment.