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

docs: improve comment around cloning middleware in examples #1977

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

shikhar
Copy link
Contributor

@shikhar shikhar commented Oct 6, 2024

tower does not seem to use the buffer middleware (anymore?) so the existing comment is invalid, but the pattern is still sensible given https://docs.rs/tower/latest/tower/trait.Service.html#be-careful-when-cloning-inner-services

@tottoto
Copy link
Collaborator

tottoto commented Oct 7, 2024

Could you conforms the commit's message to conventional-commits which conventional-changelog bases on, used in this project.

@shikhar
Copy link
Contributor Author

shikhar commented Oct 7, 2024

updated!

@shikhar shikhar changed the title examples: improve comment around cloning in middleware docs: improve comment around cloning middleware in examples Oct 7, 2024
@shikhar
Copy link
Contributor Author

shikhar commented Oct 7, 2024

tower does not seem to use the buffer middleware (anymore?) so the existing comment is invalid

I see it is actually used on the client-side,

svc: Buffer<Svc, Request<BoxBody>>,

But I think the reference to tower docs is probably more useful.

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.

3 participants