You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stream.js:94thrower;// Unhandled stream error in pipe.
Error: writeafterendatwriteAfterEnd(_stream_writable.js:132:12)atHash.Writable.write(_stream_writable.js:180:5)atEntry.ondata(stream.js:51:26)atEntry.emit(events.js:117:20)
The only difference from official solution is that I put the create hash stream definition in the global scope other than function scope. Can someone explain to me what's going on here? I'm a beginner for node.js and javascript in general.
Many thanks.
The text was updated successfully, but these errors were encountered:
For your solution, you are piping multiple entries into a single hash transform stream. Imagine two entries emitting data at the same time, your single hash stream will be confused.
For the official solution, each entry has its own hash stream so it will be ok.
My solution:
If I run it it gives the following error:
The only difference from official solution is that I put the create hash stream definition in the global scope other than function scope. Can someone explain to me what's going on here? I'm a beginner for node.js and javascript in general.
Many thanks.
The text was updated successfully, but these errors were encountered: