mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
opening transactions only on write operations which enforces exclusive lock only there to improve concurrency, custom handling of sync request timeouts, #1093, #1018
This commit is contained in:
@@ -55,6 +55,8 @@ async function checkSync() {
|
||||
}
|
||||
|
||||
async function syncNow() {
|
||||
log.info("Received request to trigger sync now.");
|
||||
|
||||
return await syncService.sync();
|
||||
}
|
||||
|
||||
@@ -168,4 +170,4 @@ module.exports = {
|
||||
getStats,
|
||||
syncFinished,
|
||||
queueSector
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user