这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@ZIMkaRU
Copy link
Member

@ZIMkaRU ZIMkaRU commented Jul 28, 2023

This PR improves the sync time estimation flow


Basic changes:

  • Improves sync time estimation flow as follows:
    • in addition to existing emitting WS events when the next collection is syncing to not hold the previous time value (some collections can sync very long) adds an ability to emit the progress event every 1sec with new values spentTime and leftTime for better UX (so that the user does not think that sync has stalled)
  • Changes sync progress test case
  • Returns sync estimated time values as an integer after calculation

Copy link
Contributor

@ezewer ezewer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants