-
Notifications
You must be signed in to change notification settings - Fork 404
Closed
Labels
T-enhancementNew features and enhancementsNew features and enhancementsquestionFurther information is requestedFurther information is requested
Description
In the serve loop of serve_inner, we await each SinkExt::send call. Should we make them asynchronous? It should, this may lead a lot of changes, for we have to change the defination of InfoTransport, which allow transport to create a send future and executed asynchronously by tokio.
As far as I can see by now, the Stream trait is proper for receiving messages from peer, but Sink seems not suitable for sending messages to peer. Because it doesn't focus on the sending result of single messages. It could be a mistake I made.
@jokemanfire How do you think about this?
Metadata
Metadata
Assignees
Labels
T-enhancementNew features and enhancementsNew features and enhancementsquestionFurther information is requestedFurther information is requested