Closed richardbutler closed 1 year ago
The fix will be available as soon as a new release is pushed (0.0.10) Can you please verify that it works as expected?
Sure, thanks for the quick turnaround. I'll look out for the release and report back.
@slvrtrn thanks for the fix, much appreciated. The multiple resolves warnings appear to have gone now.
Node version: 16.17.1
I use the
log-process-errors
package to log errors throughout my application and Clickhouse queries keep triggering the "multiple resolves" logger. This is because, in cases of a successful query, the promise is getting resolved and then rejected.The HTTP Adapter code seems to remove listeners asynchronously, causing the steps to be taken in the following order:
setImmediate(removeRequestListeners)
Taking note of the following comment in the code, I see why this was done:
However, even though multiple resolves is a minor issue, it is still noisy and poor hygiene.