Closed jarhodes314 closed 3 weeks ago
:white_check_mark: Passed | :x: Failed | :next_track_button: Skipped | Total | Pass % | :stopwatch: Duration |
---|---|---|---|---|---|
452 | 0 | 3 | 452 | 100 | 1h15m42.817476s |
Attention: Patch coverage is 97.29730%
with 7 lines
in your changes missing coverage. Please review.
Project coverage is 78.2%. Comparing base (
f186b3f
) to head (e236d50
). Report is 3 commits behind head on main.
@jarhodes314 Is there any insight provided to the user what the current backoff period is (e.g. a log entry)? This would be helpful to debug things when checking when the next connection attempt will be made.
@jarhodes314 Is there any insight provided to the user what the current backoff period is (e.g. a log entry)? This would be helpful to debug things when checking when the next connection attempt will be made.
There isn't but I'll add it
Proposed changes
This adds some backoff logic to the MQTT bridge reconnection based on the backoff crate. It also fixes a minor issue with the tedge_config macro I encountered in the process of making the changes.
Still TODO before merging:
Types of changes
Paste Link to the issue
2899
Checklist
cargo fmt
as mentioned in CODING_GUIDELINEScargo clippy
as mentioned in CODING_GUIDELINESFurther comments