From 801b939a60cafc1503cef8c7ca543792ffb8cf91 Mon Sep 17 00:00:00 2001 From: themanforfree Date: Sat, 3 Feb 2024 17:52:42 +0800 Subject: [PATCH 1/2] feat: add client urls to member Signed-off-by: themanforfree --- src/curp-command.proto | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/curp-command.proto b/src/curp-command.proto index b0ba5b2..a69d29a 100644 --- a/src/curp-command.proto +++ b/src/curp-command.proto @@ -16,10 +16,11 @@ message ProposeId { } message Member { - uint64 id = 1; - string name = 2; - repeated string addrs = 3; - bool is_learner = 4; + uint64 id = 1; + string name = 2; + repeated string peer_urls = 3; + repeated string client_urls = 4; + bool is_learner = 5; } message CmdResult { From ca6e45e1e6f7d75dc021333fbf89ff126fc51d0f Mon Sep 17 00:00:00 2001 From: themanforfree Date: Sun, 4 Feb 2024 14:36:54 +0800 Subject: [PATCH 2/2] feat: add client_urls to publish request Signed-off-by: themanforfree --- src/curp-command.proto | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/curp-command.proto b/src/curp-command.proto index a69d29a..9195e3b 100644 --- a/src/curp-command.proto +++ b/src/curp-command.proto @@ -180,9 +180,10 @@ message ProposeConfChangeResponse { } message PublishRequest { - ProposeId propose_id = 1; - uint64 node_id = 2; - string name = 3; + ProposeId propose_id = 1; + uint64 node_id = 2; + string name = 3; + repeated string client_urls = 4; } message PublishResponse {}