FactbirdHQ / mqttrust

MQTT client for embedded devices, written in rust
53 stars 5 forks source link

Retry sending QoS 1 outgoing publish messages #24

Closed keisrk closed 3 years ago

keisrk commented 3 years ago

Implement Retry logic for QoS1. QoS 2 not in scope of this PR. First 3 commits introduce helper types. NetworkHandle is there only to make borrow checker happy. 4th commit implements the logic.

codecov-io commented 3 years ago

Codecov Report

Merging #24 (faf8f6b) into master (7f4ffc0) will increase coverage by 0.95%. The diff coverage is 33.80%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #24      +/-   ##
==========================================
+ Coverage   45.19%   46.14%   +0.95%     
==========================================
  Files           5        5              
  Lines         551      583      +32     
  Branches      142      146       +4     
==========================================
+ Hits          249      269      +20     
- Misses        229      240      +11     
- Partials       73       74       +1     
Impacted Files Coverage Δ
src/eventloop.rs 22.33% <0.00%> (-0.79%) :arrow_down:
src/state.rs 44.29% <55.81%> (+4.60%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7f4ffc0...faf8f6b. Read the comment docs.