Skip to content

Does lambda_http::Handler::Future requires Send ? #342

@fmonniot

Description

@fmonniot

Hello there,

The current implementation of lambda_http's Handler::Fut requires a Send bound, but the underlying lambda_runtime's Handler::Fut does not. Is there a reason why this bound is present? Future-proofing the API or remnant of the past perhaps? The crate still compiles (and the tests pass) after removing the bound.

Would the team be interesting in a PR with this commit.

This open up some interesting avenue too. For example, I found this issue while trying to integrate actix on top of the lambda_http crate (swaping out HttpServer with lambda_runtime::run(lambda_http::handler basically).

Thanks !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions