mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +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:
@@ -40,7 +40,7 @@ function exec(opts) {
|
||||
host: parsedTargetUrl.hostname,
|
||||
port: parsedTargetUrl.port,
|
||||
path: parsedTargetUrl.path,
|
||||
timeout: opts.timeout,
|
||||
timeout: opts.timeout, // works only for node.js client
|
||||
headers,
|
||||
agent: proxyAgent
|
||||
});
|
||||
@@ -104,7 +104,7 @@ async function getImage(imageUrl) {
|
||||
host: parsedTargetUrl.hostname,
|
||||
port: parsedTargetUrl.port,
|
||||
path: parsedTargetUrl.path,
|
||||
timeout: opts.timeout,
|
||||
timeout: opts.timeout, // works only for node client
|
||||
headers: {},
|
||||
agent: proxyAgent
|
||||
});
|
||||
@@ -173,4 +173,4 @@ function generateError(opts, message) {
|
||||
module.exports = {
|
||||
exec,
|
||||
getImage
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user