lol_core/gateway/
service.rs1use std::task::{Context, Poll};
2use tonic::body::BoxBody;
3use tonic::transport::Channel;
4use tower::Service;
5
6impl Service<http::Request<BoxBody>> for super::Gateway {
7 type Response = <Channel as Service<http::Request<BoxBody>>>::Response;
8 type Error = <Channel as Service<http::Request<BoxBody>>>::Error;
9 type Future = <Channel as Service<http::Request<BoxBody>>>::Future;
10 fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
11 Service::poll_ready(&mut self.chan, cx)
12 }
13 fn call(&mut self, request: http::Request<BoxBody>) -> Self::Future {
14 Service::call(&mut self.chan, request)
15 }
16}