Skip to content
This repository has been archived by the owner on Mar 13, 2021. It is now read-only.

Fix broken examples, remove use of RetryPolicy #2

Merged
merged 4 commits into from
Sep 17, 2019

Conversation

ebkalderon
Copy link
Contributor

@ebkalderon ebkalderon commented Sep 7, 2019

Added

  • Add dependency on tower-reconnect, as it is not re-exported by the main tower crate.

Changed

  • Return Response<Body> from server instead of Response<&'static str>.

Removed

  • Remove use of RetryPolicy, as it no longer exists in tower-hyper.
  • Remove unnecessary use of LiftBody in http-client.rs.
  • Remove outdated reference to MakeService in http-client.rs.

Fixed

  • Replace outdated use of ServiceBuilder::make_service() with ServiceBuilder::service().

Closes tower-rs/tower#271.

CC @rtyler @carllerche

Copy link
Member

@LucioFranco LucioFranco left a comment

Choose a reason for hiding this comment

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

cc @carllerche since I don't have write perms here but this LGTM.

@ebkalderon
Copy link
Contributor Author

Just added another minor improvement from #1.

@ebkalderon
Copy link
Contributor Author

@carllerche Does this pull request look good? Anything that needs to be done on my end?

@LucioFranco LucioFranco merged commit 1b90a5a into tower-rs:master Sep 17, 2019
@LucioFranco
Copy link
Member

@ebkalderon thanks for this!

@ebkalderon ebkalderon deleted the fix-example-code branch September 18, 2019 01:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No method named make_service found for ServiceBuilder
2 participants