node: update comment
The comment mentions a variable `needs_flush`, which is not `write_intent`.
This commit is contained in:
parent
958422a7c4
commit
eeadffa636
|
|
@ -206,7 +206,7 @@ impl<S: Session> Transport<S> {
|
||||||
}
|
}
|
||||||
match self.flush() {
|
match self.flush() {
|
||||||
Ok(_) => None,
|
Ok(_) => None,
|
||||||
// In this case, the write could not complete. Leave `needs_flush` set
|
// In this case, the write could not complete. Leave `write_intent` set
|
||||||
// to be notified when the socket is ready to write again.
|
// to be notified when the socket is ready to write again.
|
||||||
Err(err)
|
Err(err)
|
||||||
if matches!(
|
if matches!(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue