tower/tower-balance
Jon Gjengset 395889c763
Make Ready only take Service by reference (#340)
Rather than consuming `self` and returning `(Self, _)`. This did mean
that a few crates that depended on `Ready` to own the `Service` and
provide it once it was ready had to change to call `poll_ready`
directly. Which in turn meant adding in some PhantomData<Request> so
that the impl blocks wouldn't be under-constrainted. Take, for example:

```
impl<K, S: Service<Req>, Req> Future for UnreadyService<K, S>
```

would fail to compile with

```
error[E0207]: the type parameter `Req` is not constrained by the impl trait, self type, or predicates
```
2019-09-11 15:49:51 -04:00
..
examples Update tower-balance to std::future (#335) 2019-09-10 18:15:32 -04:00
src Make Ready only take Service by reference (#340) 2019-09-11 15:49:51 -04:00
CHANGELOG.md Prepare release (#273) 2019-04-26 21:31:25 -07:00
Cargo.toml Make Ready only take Service by reference (#340) 2019-09-11 15:49:51 -04:00
LICENSE Prepare release (#273) 2019-04-26 21:31:25 -07:00
README.md Prepare release (#273) 2019-04-26 21:31:25 -07:00

README.md

Tower Balance

Balance load across a set of uniform services.

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Tower by you, shall be licensed as MIT, without any additional terms or conditions.