Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
histhub
linker
Commits
e5ee273d
Commit
e5ee273d
authored
Jun 15, 2018
by
Tobias Steiner
Browse files
Make a break if failed to save into neo4j
parent
846ae5ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
config.json
View file @
e5ee273d
...
...
@@ -8,7 +8,7 @@
"group.id"
:
"linker"
,
"socket.keepalive.enable"
:
true
,
"enable.auto.commit"
:
true
,
"queued.max.messages.kbytes"
:
100
0
"queued.max.messages.kbytes"
:
100
},
"topics"
:
{
"topics"
:
[
"linker"
]
...
...
src/neo4j-linker.ts
View file @
e5ee273d
...
...
@@ -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
);
});
});
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment