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(client): new_with_connector: correctly setup session #282

Merged
merged 1 commit into from
Jan 5, 2025

Conversation

Bogay
Copy link
Contributor

@Bogay Bogay commented Jan 1, 2025

This change ensures that we issue a new session when we create a new client.

Close #281

`Session::with_capabilities_and_connector` would issue a new session, so we should call it in the constructor.
Copy link
Owner

@jonhoo jonhoo left a comment

Choose a reason for hiding this comment

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

Perfect, thank you!

Copy link

codecov bot commented Jan 5, 2025

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 62.97%. Comparing base (452cda5) to head (ae03c0e).
Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
src/client.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
Files with missing lines Coverage Δ
src/client.rs 63.16% <0.00%> (+0.10%) ⬆️

@jonhoo jonhoo merged commit af64315 into jonhoo:main Jan 5, 2025
18 of 20 checks passed
@jonhoo
Copy link
Owner

jonhoo commented Jan 5, 2025

Published as 0.21.4 🎉

jonhoo added a commit that referenced this pull request Jan 5, 2025
@Bogay Bogay deleted the fix/basic-example-unwrap-error branch January 5, 2025 08:59
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.

basic Example Fails Due to Option::unwrap() on a None Value
2 participants