Added maxBytes support.#45
Conversation
|
Hey @dmedina2015, awesome work! I’ll try to review your PRs over the weekend as I haven’t really had time to work with SailsJS in awhile. |
|
Hey @willhuang85, thank you very much for your message. I'm happy to help the project. Below are some attention points for your analysis: (1) I commented the listeners (2) I used the exact same logic of I cannot understand why (3) I strongly recommend you to take a look at PR #44 . It fix a bug identified in issue #39 and I think it is important to get in master due to a callback being called twice. Greetings from Brazil |
- Adds support for Node14, by doing the following: * Update MongoDB Node Driver to latest (3.6.5) * Removed unecessary event emitters from adapter.receive() * adapter.receive() only calls 'done' callback when 'outs__' stream finishes or rise an error. Previous code was calling callback before finishing the file writing. This was causing some async problems and not passing skipper-adapter-test official tests. * Tests are now using official adapter by sailshq. No tweaks are needed to pass the build.
(1) Added support to
maxBytesoption, using similar logic fromskipper-disk. Behavior:maxBytesparameter.GridFSBucketWriteStream.abort()function(2) Added support to
onProgressusing same logic fromskipper-disk@mikermcneil or @willhuang85 , could you review it?