Open aleclarson opened 7 years ago
Left a few comments, it seems reasonable beside that
@neumino I can't find where you left the comments 😅
@aleclarson I think he meant that you comment a little before the merge can happen.
Also, I noticed that there is a lot more options than the one being passed, like tls and connection pools, shouldn't we add those or it will reconnect with those settings by it's own?
@Extarys Not much to add comments to, it's just 3 changes and 1 addition. And there are already 2 comments.
The connection pool manages each connection. The connection has no knowledge of belonging to a connection pool. Thus, no pool-specific options exist in this context.
As for TLS, that configuration is done using the options.ssl
object, which is already accounted for.
@aleclarson That's why I wasn't sure if it was needed. I mean you guys are the pros I'm just a guy using the software :P Thanks for taking the time to clarify this for me, I feel more intelligent already
Throw an error if
options.connection
is defined. Retain theoptions
for subsequent calls tor.connect
when trying to reconnect.The following options were not being used in reconnections: