From b4495caadc6c4578e95edf3b794a30dcd640ddb3 Mon Sep 17 00:00:00 2001 From: David Schmitt Date: Mon, 13 May 2024 13:56:05 +0200 Subject: [PATCH] Add RevlinkWarmup to ManagementService This allows clients to request a warmup before operations. --- account.proto | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/account.proto b/account.proto index 518fcff..0663506 100644 --- a/account.proto +++ b/account.proto @@ -144,6 +144,10 @@ service ManagementService { // control the associated private key also in order to connect to NATS as // the token is not enough on its own rpc CreateToken(CreateTokenRequest) returns (CreateTokenResponse); + + // Ensure that all reverse links are populated. This does internal debouncing + // so the actual logic does only run when required. + rpc RevlinkWarmup(RevlinkWarmupRequest) returns (stream RevlinkWarmupResponse); } enum SourceStatus { @@ -288,3 +292,11 @@ message CreateTokenResponse { // The JWT as a raw string string token = 1; } + +message RevlinkWarmupRequest {} + +message RevlinkWarmupResponse { + string status = 1; + int32 items = 2; + int32 edges = 3; +}