Commit e5ee273d authored by Tobias Steiner's avatar Tobias Steiner
Browse files

Make a break if failed to save into neo4j

parent 846ae5ed
......@@ -8,7 +8,7 @@
"group.id": "linker",
"socket.keepalive.enable": true,
"enable.auto.commit": true,
"queued.max.messages.kbytes": 1000
"queued.max.messages.kbytes": 100
},
"topics": {
"topics": ["linker"]
......
......@@ -53,9 +53,10 @@ export class Linker {
session.close();
resolve();
}).catch((err) => {
session.close();
throw err;
// reject(`Error while saving a connection to neo4j ${JSON.stringify(err)}`);
setTimeout(() => {
session.close();
reject(`Error while saving a connection to neo4j ${JSON.stringify(err)}`);
}, 500);
});
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment