From 04cf5c10b5834f5b40ea15fbd7b839c4c1e3aa80 Mon Sep 17 00:00:00 2001 From: bsbds <69835502+bsbds@users.noreply.github.com> Date: Tue, 2 Jul 2024 19:43:59 +0800 Subject: [PATCH] chore: add read index Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com> --- src/curp-command.proto | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/curp-command.proto b/src/curp-command.proto index 413a1ee..923db00 100644 --- a/src/curp-command.proto +++ b/src/curp-command.proto @@ -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);