Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove ConnectionError in favour of pre-processing #68

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

vrongmeal
Copy link
Member

Resolves: #60

@vrongmeal vrongmeal requested a review from a team as a code owner November 19, 2024 18:18
Comment on lines +691 to +692
.user_agent(config.user_agent.clone())
.unwrap()
Copy link
Member Author

Choose a reason for hiding this comment

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

Unfortunately need to unwrap since the arg is TryInto<HeaderValue> which for HeaderValue would never fail.

Copy link
Member

Choose a reason for hiding this comment

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

can you switch as many unwrap()s as reasonable to expect() with a very brief message about why it is safe?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops saw this a bit late. Will update.

Copy link
Member

@shikhar shikhar left a comment

Choose a reason for hiding this comment

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

Can you please update the CLI to adapt to the breaking changes?

@vrongmeal vrongmeal merged commit 4a225db into main Nov 19, 2024
3 checks passed
@vrongmeal vrongmeal deleted the vrongmeal/conn-err branch November 19, 2024 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reconsider ConnectionError given lazy connecting
2 participants