You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by li...@apache.org on 2022/04/24 06:30:39 UTC

[rocketmq-apis] branch v2 updated: Optimize exponential backoff

This is an automated email from the ASF dual-hosted git repository.

lizhanhui pushed a commit to branch v2
in repository https://gitbox.apache.org/repos/asf/rocketmq-apis.git


The following commit(s) were added to refs/heads/v2 by this push:
     new d875aca  Optimize exponential backoff
d875aca is described below

commit d875aca94dee0ff3f63a53d5772c903e36fef249
Author: Li Zhanhui <li...@gmail.com>
AuthorDate: Sun Apr 24 14:30:30 2022 +0800

    Optimize exponential backoff
---
 apache/rocketmq/v2/definition.proto | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/apache/rocketmq/v2/definition.proto b/apache/rocketmq/v2/definition.proto
index 5775028..ad3af70 100644
--- a/apache/rocketmq/v2/definition.proto
+++ b/apache/rocketmq/v2/definition.proto
@@ -66,10 +66,11 @@ message RetryPolicy {
   }
 }
 
+// https://en.wikipedia.org/wiki/Exponential_backoff
 message ExponentialBackoff {
-  float initial_backoff = 1;
-  float max_backoff = 2;
-  float backoff_multiplier = 3;
+  google.protobuf.Duration initial = 1;
+  google.protobuf.Duration max = 2;
+  float multiplier = 3;
 }
 
 message CustomizedBackoff {