Skip to content

Conversation

@pchaseh
Copy link
Contributor

@pchaseh pchaseh commented Aug 6, 2025

Adds a sync implementation of the Connection type, SyncConnection. This is accomplished by moving all message parsing logic out of Connection to be reused by both implementations, and then duplicating the minimum required functions to SyncConnection. This is what I've found to be the cleanest path forward, but I'm open to other ideas.
There's also some linting errors that have been fixed with clippy via version 0.1.88, if preferred I can move those into a separate pull request

Closes #2

Copy link
Owner

@amodm amodm left a comment

Choose a reason for hiding this comment

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

Thanks @pchaseh. This looks like a clean way of getting this done, so I appreciate you saving me a ton of time here.

Would you be able to replicate the existing tests for SyncConnection too? If not, I'll merge this PR anyway, and take up the test addition in the next few days as I get time.

@amodm amodm merged commit 7bd406a into amodm:main Aug 8, 2025
3 checks passed
@amodm
Copy link
Owner

amodm commented Aug 8, 2025

Thanks for your contribution @pchaseh. I modified the tests to account for the sync connection too.

A small note for future contributions, if any - please sign your commits, it's easy and a good practice.

@amodm
Copy link
Owner

amodm commented Aug 8, 2025

FYI, this is now released as v0.4.0

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.

Add a sync API

2 participants