Skip to content

Commit

Permalink
feat(cozy-pouch-link): Add a syncDebounceMaxDelayInMs parameter
Browse files Browse the repository at this point in the history
In previous commit we added the possibility to debounce the
`startReplication()` method and to configure the debounce delay with
`syncDebounceDelayInMs` parameter

This may be problematic as we expect to call this from realtime events
that may, in some rare scenario, occur too often to trigger a single
replication due to the debounce

To prevent this we add the `syncDebounceMaxDelayInMs` parameter that
will ensure that `startReplication()` is called when the max delay is
reached even if realtime events trigger the debounce for too long
  • Loading branch information
Ldoppea committed Nov 6, 2024
1 parent e221a7a commit 9089ffc
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 47 deletions.
Loading

0 comments on commit 9089ffc

Please sign in to comment.