node: update comment

The comment mentions a variable `needs_flush`, which is not `write_intent`.
This commit is contained in:
Fintan Halpenny 2026-01-19 12:18:27 +00:00 committed by Lorenz Leutgeb
parent 958422a7c4
commit eeadffa636
1 changed files with 1 additions and 1 deletions

View File

@ -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!(