Add missing `TimeoutLayer` to tower (#215)

Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
This commit is contained in:
Lucio Franco 2019-03-29 17:00:13 -04:00 committed by GitHub
parent f6dcbb6ca1
commit da4e22c89d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

View File

@ -21,7 +21,8 @@ layers = [
"tower-load-shed",
"tower-rate-limit",
"tower-retry",
"tower-filter"
"tower-filter",
"tower-timeout"
]
make_service = [
"tower-balance",
@ -43,6 +44,7 @@ tower-load-shed = { version = "0.1", path = "../tower-load-shed", optional = tru
tower-balance = { version = "0.1", path = "../tower-balance", optional = true }
tower-discover = { version = "0.1", path = "../tower-discover", optional = true }
tower-reconnect = { version = "0.1", path = "../tower-reconnect", optional = true }
tower-timeout = { version = "0.1", path = "../tower-timeout", optional = true }
[dev-dependencies]
futures = "0.1"

View File

@ -6,3 +6,4 @@ pub use tower_in_flight_limit::InFlightLimitLayer;
pub use tower_load_shed::LoadShedLayer;
pub use tower_rate_limit::RateLimitLayer;
pub use tower_retry::RetryLayer;
pub use tower_timeout::TimeoutLayer;

View File

@ -19,6 +19,8 @@ extern crate tower_load_shed;
extern crate tower_rate_limit;
#[cfg(feature = "layers")]
extern crate tower_retry;
#[cfg(feature = "layers")]
extern crate tower_timeout;
#[cfg(feature = "make_service")]
extern crate tower_balance;