-
Notifications
You must be signed in to change notification settings - Fork 949
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
Remove the OutboundOpenInfo associated type from ProtocolsHandler #696
Comments
There is an asymmetry that may be addressed by This shows up in the current implementations of request-oriented protocols, where |
The current API does not seem to be streamlined for request-response protocols: the output type of |
As per #1714 (ticket #1709) not only did we not remove
Yes, implementing request-response protocols with the current APIs leaves something to be desired, which is why we wrote @mzabaluev If you have suggestions for improving the API, please open new issues. All feedback and suggestions are appreciated. |
(Long term issue. Let's wait for things to be stable before seeing if that's a good idea.)
Initially, the
ProtocolsHandler
contains the associated typesUpgrade
andOutboundOpenInfo
. TheUpgrade
was used both for inbound and outbound substreams.The
OutboundOpenInfo
is an additional piece of data that you can pass when you open an outbound substream, and that you get back later, in order to remember why you opened this substream.However now that the
Upgrade
has been split intoInboundUpgrade
andOutboundUpgrade
, the user can insert this piece of information in theOutboundUpgrade
instead.The text was updated successfully, but these errors were encountered: