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

Make request_modifier usable from async trait #711

Conversation

frank-hivewatch
Copy link
Contributor

@frank-hivewatch frank-hivewatch commented Sep 7, 2023

This patch decorates the request_modifier with Send + Sync markers.
The request_modifier must be thread safe when called from async trait.

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist:

  • Formatted with cargo fmt
  • Make an entry to CHANGELOG.md if it's relevant to the users of the library. If it's not relevant mention why.

@frank-hivewatch frank-hivewatch force-pushed the feature/decorate_request_modifier branch from a95b999 to b2a07ea Compare September 7, 2023 18:22
@frank-hivewatch frank-hivewatch force-pushed the feature/decorate_request_modifier branch 2 times, most recently from 5039468 to fefcd06 Compare September 7, 2023 18:32
The request_modifier must be thread safe when called from async trait.
@frank-hivewatch frank-hivewatch force-pushed the feature/decorate_request_modifier branch from fefcd06 to c4640d3 Compare September 7, 2023 18:33
@Siddius
Copy link

Siddius commented Jan 16, 2024

can we merge this, because this is actual a breaking change from 0.22 to 0.23. Would be nice to get it fixed again.

@swanandx
Copy link
Member

Hey @frank-hivewatch , apologies for super late reply!

as of now, the changes done in this PR are incorporated in fn signature!:

type RequestModifierFn = Arc<

so I will close the PR. Thank you so much for the contribution and sorry once again for the PR going unnoticed 😅

@Siddius this changes will be available in 0.24 ( expect it to be released next week ).

Thank you so much.

@swanandx swanandx closed this Feb 16, 2024
@frank-hivewatch frank-hivewatch deleted the feature/decorate_request_modifier branch February 16, 2024 10:15
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.

4 participants