From 23bb656e5a6cc5a0d277cd7f385cac96e5b0234a Mon Sep 17 00:00:00 2001 From: kewei Date: Tue, 19 Mar 2024 21:38:30 +0800 Subject: [PATCH 1/2] rpc SetSubscribeExpiry --- p2psentinel/sentinel.proto | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/p2psentinel/sentinel.proto b/p2psentinel/sentinel.proto index aa078db..277a269 100644 --- a/p2psentinel/sentinel.proto +++ b/p2psentinel/sentinel.proto @@ -79,7 +79,13 @@ message IdentityResponse { Metadata metadata = 5; } +message RequestSubscribeExpiry { + string topic = 1; + uint64 expiry_unix_sec = 2; +} + service Sentinel { + rpc SetSubscribeExpiry(RequestSubscribeExpiry) returns(EmptyMessage); rpc SubscribeGossip(SubscriptionData) returns (stream GossipData); rpc SendRequest(RequestData) returns (ResponseData); rpc SetStatus(Status) returns(EmptyMessage); // Set status for peer filtering. From 8a44157dddb04f3525cae3d1fd355815010da7ef Mon Sep 17 00:00:00 2001 From: kewei Date: Tue, 19 Mar 2024 21:45:04 +0800 Subject: [PATCH 2/2] update --- p2psentinel/sentinel.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2psentinel/sentinel.proto b/p2psentinel/sentinel.proto index 277a269..6d35dcf 100644 --- a/p2psentinel/sentinel.proto +++ b/p2psentinel/sentinel.proto @@ -81,7 +81,7 @@ message IdentityResponse { message RequestSubscribeExpiry { string topic = 1; - uint64 expiry_unix_sec = 2; + uint64 expiry_unix_secs = 2; } service Sentinel {