1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Clean up and comment

This commit is contained in:
Laurent Cozic
2017-10-26 23:03:21 +01:00
parent 5b140544e0
commit e11670a872
5 changed files with 6 additions and 22 deletions

View File

@ -358,14 +358,14 @@ class Synchronizer {
while (true) {
if (this.cancelling()) break;
// let allIds = null;
// if (!this.api().supportsDelta()) {
// allIds = await BaseItem.syncedItemIds(syncTargetId);
// }
let listResult = await this.api().delta('', {
context: context,
// itemIds: allIds,
// allItemIdsHandler() provides a way for drivers that don't have a delta API to
// still provide delta functionality by comparing the items they have to the items
// the client has. Very inefficient but that's the only possible workaround.
// It's a function so that it is only called if the driver needs these IDs. For
// drivers with a delta functionality it's a noop.
allItemIdsHandler: async () => { return BaseItem.syncedItemIds(syncTargetId); }
});