no unbound recursion in publish()
unbound recursion approach can blow up call stack, and - I think - allocate memory unboundedly as well. We can simply loop until err != nil I didn't actually test this live, though tests succeed
Showing
Please
register
or
sign in
to comment