Nick Cameron
|
f90a82fe35
|
Add some docs and move try_one_pc out of options ctor
Signed-off-by: Nick Cameron <nrc@ncameron.org>
|
2021-01-05 14:48:57 +13:00 |
Nick Cameron
|
1c7e843b54
|
Refactor the retry options
Signed-off-by: Nick Cameron <nrc@ncameron.org>
|
2021-01-05 14:48:57 +13:00 |
Nick Cameron
|
de9ca63dc9
|
Add transaction option for no retry
Signed-off-by: Nick Cameron <nrc@ncameron.org>
|
2021-01-05 14:48:57 +13:00 |
Nick Cameron
|
0db6ab8923
|
Refactor Backoff
Signed-off-by: Nick Cameron <nrc@ncameron.org>
|
2021-01-05 14:48:57 +13:00 |
龙方淞
|
c01495e20f
|
Basic support of pessimistic transaction (#184)
Signed-off-by: longfangsong <longfangsong@icloud.com>
|
2020-10-22 15:03:54 +08:00 |
Steven Gu
|
91e8fba3c7
|
Adds comments to each struct Backoff, and removes Option from the parameter backoff.
Signed-off-by: Steven Gu <asongala@163.com>
|
2020-03-20 10:13:41 +08:00 |
Steven Gu
|
e6920d8b4e
|
Rollbacks to add `const` new function for struct NoJitterBackoff according to code review.
Signed-off-by: Steven Gu <asongala@163.com>
|
2020-03-20 10:06:21 +08:00 |
Steven Gu
|
5f3e4096b0
|
Updates Backoff trait function next_delay_ms to next_delay_duration according to code review.
Signed-off-by: Steven Gu <asongala@163.com>
|
2020-03-17 16:45:21 +08:00 |
Steven Gu
|
5f003ae1ee
|
Refactors `backoff.rs` and replaces `Arc<impl Backoff>` to `Option<impl Backoff>` according to the code review.
Signed-off-by: Steven Gu <asongala@163.com>
|
2020-03-06 11:51:56 +08:00 |
Steven Gu
|
94efe10352
|
Implements exponential backoff on request retry logic.
Signed-off-by: Steven Gu <asongala@163.com>
|
2020-03-02 18:33:21 +08:00 |