-
Notifications
You must be signed in to change notification settings - Fork 361
Remove tokio rt-multi-thread
feature from lambda_runtime
and lambda_extension
, and possibly rt
as well
#984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
rt-multi-thread
feature in lambda_runtime
and lambda_extension
rt-multi-thread
feature in lambda_runtime
and lambda_extension
, and possibly rt
On thinking more about it, I don't think I actually need a That leaves no usages of Anyway probably ripping out any of these features in semver breakage, since if somebody was implicitly getting them enabled by So presumably this would all require a new minor version (since we are pre-1.0) |
rt-multi-thread
feature in lambda_runtime
and lambda_extension
, and possibly rt
rt-multi-thread
feature from lambda_runtime
and lambda_extension
, and possibly rt
as well
Ok, I do need So I think that the larger point remains wrt to removing It might actually simplify the migration path to have the feature flag for |
Even through one Lambda sandbox only receives one request at time, nothing prevents people starting multiple async tasks to handle that request. I think you also reached the same conculsion at #985. |
That may be, but it still seems awfully infectious to enable For the purposes of feature hygiene, shouldn't we avoid enabling that flag that we aren't directly using? |
Currently the
lambda_runtime
crate has an unconditional dependency on tokio withert-multi-thread
feature enabled:I'm struggling to see anywhere this dependency is actually used. Meanwhile, given that lambdas only receive one request at a time, it will frequently make sense for callers to only want to use the current thread runtime anyway (ref: #985 ).
I don't think we even need the
rt
(not multithreaded) feature forlambda-runtime
, not seeing anywhere we are spawning or interacting with feature gated APIs. Though, for #983 we would need it, so probably ok to leave in?Anyway, is there a reason we need to depend on the multithreaded runtime feature? Am I missing something?
The text was updated successfully, but these errors were encountered: