Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: otaclient module: restructure OTAUpdater, flatten nested in…
…ternal methods (#353) This PR refines the otaclient.OTAUpdater class' internal implementation, reduce the code complexity, makes the code flow clear and ease the maintenance. Other changes: 1. update_stats: now for update phase elapsed time tracking, the time will be rounded up to 1s if the elapsed time is less than 1s. 2. the OTAClient class now doesn't hold internal lock anymore, OTAServicer takes the responsibility of maintaining the session and ensuring there is only one OTA occurs at a time.
- Loading branch information
36f8b3a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report