becca conversion WIP

This commit is contained in:
zadam
2021-05-01 21:52:22 +02:00
parent 6626f100ad
commit d13c8771ca
8 changed files with 32 additions and 27 deletions

View File

@@ -383,17 +383,15 @@ function getOutstandingPullCount() {
return outstandingPullCount;
}
sqlInit.dbReady.then(() => {
require("./becca/becca_loader").beccaLoaded.then(() => {
setInterval(cls.wrap(sync), 60000);
// kickoff initial sync immediately
setTimeout(cls.wrap(sync), 5000);
});
if (sqlInit.isDbInitialized()) {
// called just so ws.setLastSyncedPush() is called
getLastSyncedPush();
}
});
module.exports = {
sync,