mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
runOnBackend now does not automatically wait for the maxSyncId since it can easily result in infinite cycle
This commit is contained in:
@@ -91,7 +91,13 @@ export default class Component {
|
||||
console.log(`Call to ${fun.name} in ${this.componentId} took ${took}ms`);
|
||||
}
|
||||
|
||||
await utils.timeLimit(promise, 25000, `Time limit failed on ${this.constructor.name} with ${fun.name}`);
|
||||
if (glob.isDev) {
|
||||
await utils.timeLimit(promise, 3000, `Time limit failed on ${this.constructor.name} with ${fun.name}`);
|
||||
}
|
||||
else {
|
||||
// cheaper and in non-dev the extra reporting is lost anyway through reload
|
||||
await promise;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user