deepal / boostnote-github-sync

✨ Sync BoostNote notes into Github Private Repo in Markdown format
20 stars 5 forks source link

Delayed Sync #2

Closed deepal closed 5 years ago

deepal commented 5 years ago

When a note is being edited by the user, every keystroke can trigger a file update event on the watcher. In the worse-case, this results in the creation of individual sync events per each keystroke, which is unnecessary and could event lead to Github API quota exhaustion. To prevent this, implement delayed sync in the following manner.