feat: add live sync retry backoff
This commit is contained in:
parent
24a0a3d153
commit
2dce1f41cf
8 changed files with 225 additions and 31 deletions
|
|
@ -3334,7 +3334,7 @@ fn print_response(response: ControlResponse, json: bool) -> Result<()> {
|
|||
}
|
||||
for stream in peer.streams {
|
||||
println!(
|
||||
" {}\tstate={}\tstale={}\tcursor={}\tlast_attempt={}\tlast_success={}\timported={}\trejected={}\terror={}\tnext={}",
|
||||
" {}\tstate={}\tstale={}\tcursor={}\tlast_attempt={}\tlast_success={}\timported={}\trejected={}\tfailures={}\tretry_in_ms={}\terror={}\tnext={}",
|
||||
stream.stream,
|
||||
stream.state,
|
||||
stream.stale,
|
||||
|
|
@ -3349,6 +3349,11 @@ fn print_response(response: ControlResponse, json: bool) -> Result<()> {
|
|||
.unwrap_or_else(|| "never".to_owned()),
|
||||
stream.last_imported,
|
||||
stream.last_rejected,
|
||||
stream.consecutive_failures,
|
||||
stream
|
||||
.retry_in_ms
|
||||
.map(|value| value.to_string())
|
||||
.unwrap_or_else(|| "-".to_owned()),
|
||||
stream.last_error.unwrap_or_else(|| "-".to_owned()),
|
||||
stream.next_action
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue