forked from lx/netapp
fix comment
This commit is contained in:
parent
bf0e82047f
commit
add2b54743
1 changed files with 2 additions and 2 deletions
|
@ -53,8 +53,8 @@ where
|
||||||
M: Message,
|
M: Message,
|
||||||
{
|
{
|
||||||
async fn handle(self: &Arc<Self>, mut m: Req<M>, from: NodeID) -> Resp<M> {
|
async fn handle(self: &Arc<Self>, mut m: Req<M>, from: NodeID) -> Resp<M> {
|
||||||
// Immediately drop stream to avoid backpressure if a stream was sent
|
// Immediately drop stream to ignore all data that comes in,
|
||||||
// (this will make all data sent to the stream be ignored immediately)
|
// instead of buffering it indefinitely
|
||||||
drop(m.take_stream());
|
drop(m.take_stream());
|
||||||
Resp::new(EndpointHandler::handle(self, m.msg(), from).await)
|
Resp::new(EndpointHandler::handle(self, m.msg(), from).await)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue