Skip to content

Commit

Permalink
Propagete poll_ready to warp svc
Browse files Browse the repository at this point in the history
  • Loading branch information
rdettai committed Apr 3, 2024
1 parent df5c8bb commit 436c347
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions quickwit/quickwit-lambda/src/searcher/warp_lambda.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,10 @@ where
type Error = LambdaError;
type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'a>>;

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
core::task::Poll::Ready(Ok(()))
fn poll_ready(&mut self, ctx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
self.warp_service
.poll_ready(ctx)
.map_err(|err| match err {})
}

fn call(&mut self, req: Request) -> Self::Future {
Expand Down

0 comments on commit 436c347

Please sign in to comment.