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

Add some logs for backpressure

parent b8f258ac
......@@ -36,6 +36,8 @@ class Neo4jStreamWriter extends Writable {
// backpressure will get exerted this way.
// todo: check the error first
core.getLogger().error('from' + chunk.parsed.from);
setTimeout(() => {
this._write(chunk, encoding, callback);
}, this.timeout);
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