use {std::time::Duration,
tower_http::timeout::TimeoutLayer as TowerTimeoutLayer};
pub type TimeoutLayer = TowerTimeoutLayer;
pub fn timeout(duration: Duration) -> TimeoutLayer {
TimeoutLayer::new(duration)
}
pub fn timeout_secs(secs: u64) -> TimeoutLayer {
TimeoutLayer::new(Duration::from_secs(secs))
}