Skip to content

feat: Synchronous Client: Remove mut from methods #646

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

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

BKDaugherty
Copy link
Contributor

@BKDaugherty BKDaugherty commented Jun 21, 2023

I realized that the synchronous client might not actually need to take &mut self instead of &self here. I think reducing the requirements on this would make it more ergonomic.

Also with respect to a breaking change, I'm not actually sure that this is one. I don't think it is, but am not really sure how to tell.

Type of change

New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • Formatted with cargo fmt
  • Make an entry to CHANGELOG.md if its relevant of user of the library. If its not relevant mention why.

@BKDaugherty BKDaugherty force-pushed the sync_client_mutability branch from 3910288 to 39a0389 Compare June 21, 2023 17:43
@stale stale bot added the stale Not moving forward; blocked label Jul 11, 2023
@h3nill h3nill requested a review from yatinmaan July 13, 2023 11:01
@stale stale bot removed the stale Not moving forward; blocked label Jul 13, 2023
@stale stale bot added the stale Not moving forward; blocked label Aug 2, 2023
Copy link
Member

@swanandx swanandx left a comment

Choose a reason for hiding this comment

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

please sync up the with latest main branch to resolve the merge conflicts, rest LGTM! Thank you for the PR 😄

Given the synchronous client just uses the asynchronous
client under the hood, I don't think these need to be
mut, although I could be misunderstanding their usage.

I also don't think this is a breaking change, given we
are moving from `&mut self` to `&self`.
@BKDaugherty BKDaugherty force-pushed the sync_client_mutability branch from 39a0389 to 178b816 Compare November 9, 2023 18:53
@BKDaugherty BKDaugherty requested a review from swanandx November 9, 2023 18:53
@BKDaugherty
Copy link
Contributor Author

Thanks for the review @swanandx! Rebased on main, and updated the changelog! Would love another look!

@swanandx swanandx merged commit 2bc1f1f into bytebeamio:main Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Not moving forward; blocked
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants