-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
fix(server): export UpgradeableConnection #2587
fix(server): export UpgradeableConnection #2587
Conversation
df2f4fb
to
c3f3330
Compare
I'd actually be really interested in the motivation. In my mind this was always just an implementation detail that I hoped no one would have to care about. It was mostly just meant to be an opaque type, kinda like an |
@seanmonstar We store the |
Also, do you know what the commit message bot is complaining about? I can't see the actual error to correct the commit message. |
The commit format is in the CONTRIBUTING file, it's looking for commits like |
This struct is part of the public API (returned from Connection::with_upgrades), but was previously not exported.
87783f7
to
c458bcd
Compare
Some more background on the motivation. Here is the actual usecase: https://github.com/denoland/deno/blob/46d65919737d644cc57b569b9636673cd1d94d2b/extensions/net/ops_http.rs#L104-L107. We store |
Ah I see, so you need to store the future inside a struct. And being able to store Do you otherwise need to call any inherent methods on the |
I think only |
That works as expected. I still feel like the type should be exported if it is used as a return type. Thanks |
This struct is part of the public API (returned from
Connection::with_upgrades), but was previously not exported.
Why this is a problem doesn't require explanation I think 😉