1) The code does not compile anymore with latest crystal.
2) Even when fixing the above probel, it leads to a segfault in the mongo driver and other c related issues.
Done ✔️
Fixed the stream initiator code.
Updated the code and made it compatible with the latest crystal version.
Commented three finalizer methods that crashed because it freed BSON twice. Which is not that great since is leaves dangling pointers, but I guess it's better than a crash anyway.
Hi @datanoise, first, thanks a bunch for this great library! ❤️
Why the PR ❓
I noticed that the custom stream initiator feature is not working properly.
1) The code does not compile anymore with latest crystal. 2) Even when fixing the above probel, it leads to a segfault in the mongo driver and other c related issues.
Done ✔️
finalizer
methods that crashed because it freed BSON twice. Which is not that great since is leaves dangling pointers, but I guess it's better than a crash anyway.