Skip to content

Add newSecureClientConnection and friends#46

Merged
tfausak merged 4 commits intotfausak:mainfrom
bens:main
Jul 31, 2024
Merged

Add newSecureClientConnection and friends#46
tfausak merged 4 commits intotfausak:mainfrom
bens:main

Conversation

@bens
Copy link
Copy Markdown
Contributor

@bens bens commented Jul 6, 2024

Addresses the closed issue #22.

@tfausak
Copy link
Copy Markdown
Owner

tfausak commented Jul 26, 2024

Thanks for opening this PR! Sorry I haven't been able to review it yet. I will try to take a close look soon. From a quick glance, it looks good but I wonder if anything can be combined/de-duplicated.

@bens
Copy link
Copy Markdown
Contributor Author

bens commented Jul 27, 2024

True, the runSecureClient* functions might be able to use the newSecureClient* functions. I'll see if that will work. I can use my fork for my current work in the meanwhile, so no rush on the review I think. Cheers.

Copy link
Copy Markdown
Owner

@tfausak tfausak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

I think having the runSecureClient* functions call each other makes for a cleaner implementation than delegating to runSecureClientConnection*, since we can avoid a bunch of calls to bracket.

On the other hand, it means we're duplicating the default options/config. Not a huge deal, but a potential for drift.

I figured I'd leave my suggestions, but I'm happy to merge this as-is. I don't think either approach is strictly better.

@bens
Copy link
Copy Markdown
Contributor Author

bens commented Jul 30, 2024

I don't have strong feelings either way either, on balance I thought the brackets were boilerplatey but easy to verify aren't doing anything weird and won't need to be modified, whereas the default config code was (slightly) more likely to change over time and drift as you say, but happy with whatever the maintainer prefers.

bens and others added 2 commits July 30, 2024 12:24
Co-authored-by: Taylor Fausak <taylor@fausak.me>
Co-authored-by: Taylor Fausak <taylor@fausak.me>
Copy link
Copy Markdown
Owner

@tfausak tfausak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks! Sorry for the back and forth.

@tfausak tfausak merged commit a6d64bd into tfausak:main Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants