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
I came across this while using seneca-postgres-store's native method. The callback to native expects 3 arguments: err, client and a done callback that is used to release the client back to the connection pool. When using the native method, the 3rd argument is not passed back, so there's no way to release the client when finished.
I traced the problem to where the callback gets called in seneca.js:
I can't think of any problems that might arise from allowing 3+ arguments here; was there a good reason for slicing off the rest of the arguments? It looks like before 9397de6 seneca just passed everything along.
The text was updated successfully, but these errors were encountered:
I came across this while using seneca-postgres-store's
native
method. The callback tonative
expects 3 arguments:err
,client
and adone
callback that is used to release the client back to the connection pool. When using thenative
method, the 3rd argument is not passed back, so there's no way to release the client when finished.I traced the problem to where the callback gets called in seneca.js:
I can't think of any problems that might arise from allowing 3+ arguments here; was there a good reason for slicing off the rest of the arguments? It looks like before 9397de6 seneca just passed everything along.
The text was updated successfully, but these errors were encountered: