Skip to content

Commit f5219a3

Browse files
authored
mux api: refine previous PR (#73)
Use the existing RateLimited message. Signed-off-by: Matt Klein <mklein@bitdrift.io>
1 parent 47f525c commit f5219a3

File tree

1 file changed

+5
-4
lines changed
  • src/bitdrift_public/protobuf/client/v1

1 file changed

+5
-4
lines changed

src/bitdrift_public/protobuf/client/v1/api.proto

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,10 @@ message HandshakeResponse {
325325
uint32 configuration_update_status = 2;
326326
}
327327

328-
// A general indication of rate limiting from server to client. Further configuration of what to do
329-
// when limited can be added later.
328+
// A general indication of rate limiting from server to client.
330329
message RateLimited {
330+
// Optional minimum retry backoff duration that the client should adhere to.
331+
google.protobuf.Duration retry_after = 1;
331332
}
332333

333334
// A response to an upload request, intended to ack or nack the success of the
@@ -469,8 +470,8 @@ message ErrorShutdown {
469470
// The message that would have been sent in trailers.
470471
string grpc_message = 2;
471472

472-
// Optional minimum retry backoff duration that the client should adhere to.
473-
google.protobuf.Duration retry_after = 3;
473+
// Optional rate limiting that the client should adhere to.
474+
RateLimited rate_limited = 3;
474475
}
475476

476477
// Called by the server to tell the client to flush a set of owned buffers. When this command is

0 commit comments

Comments
 (0)