tower/tower-balance
Oliver Gould c06aa5452d
Test `Balance::poll_ready` (#42)
Test `Balance::poll_ready` by creating a random number of services, each
of which must be polled a random number of times before becoming ready.
As the balancer is polled, the test ensures that it does not become
ready prematurely and that services are promoted from not_ready to
ready.

`Balance::num_ready()` and `Balance::is_ready()` have been added to
expose the number of ready services, as well as `Balance::num_not_ready()`
to expose the number of pending services.
2018-01-26 14:23:11 -08:00
..
examples Add an examples that demonstrates p2c & rr behavior (#39) 2018-01-25 12:51:33 -08:00
src Test `Balance::poll_ready` (#42) 2018-01-26 14:23:11 -08:00
Cargo.toml Add an examples that demonstrates p2c & rr behavior (#39) 2018-01-25 12:51:33 -08:00
README.md License Tower under MIT only 2017-11-16 09:44:44 -08:00

README.md

Tower Balance

A Tower middleware that load balances across a uniform set of services.