thrownewError(`Sync server has source ID ${resp.sourceId} which is also local. This usually happens when the sync client is (mis)configured to sync with itself (URL points back to client) instead of the correct sync server.`);
thrownewError(`Sync server has member ID ${resp.memberId} which is also local. This usually happens when the sync client is (mis)configured to sync with itself (URL points back to client) instead of the correct sync server.`);
}
}
syncContext.sourceId =resp.sourceId;
syncContext.memberId =resp.memberId;
constlastSyncedPull=getLastSyncedPull();
constlastSyncedPull=getLastSyncedPull();
@ -131,7 +131,7 @@ async function pullChanges(syncContext) {
log.info(`Pulled ${entityChanges.length} changes in ${sizeInKb} KB, starting at entityChangeId=${lastSyncedPull} in ${pulledDate-startDate}ms and applied them in ${Date.now()-pulledDate}ms, ${outstandingPullCount} outstanding pulls`);
log.info(`Pulled ${entityChanges.length} changes in ${sizeInKb} KB, starting at entityChangeId=${lastSyncedPull} in ${pulledDate-startDate}ms and applied them in ${Date.now()-pulledDate}ms, ${outstandingPullCount} outstanding pulls`);
}
}
}
log.info("Finished pull");
log.info("Finished pull");
}
}
@ -189,10 +191,9 @@ async function pushChanges(syncContext) {