Skip to content

Commit 874b0c9

Browse files
committed
Add TODO for possibility to remove writebuf field
1 parent 2919199 commit 874b0c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/shims/unix/socket.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ struct SocketPair {
2323
readbuf: Rc<RefCell<Buffer>>,
2424
/// When a socketpair instance is created, two socketpair file descriptions are generated.
2525
/// The peer_fd field holds a weak reference to the file description of peer socketpair.
26+
// TODO: It might be possible to retrieve writebuf from peer_fd and remove the writebuf
27+
// field above.
2628
peer_fd: WeakFileDescriptionRef,
2729
is_nonblock: bool,
2830
}

0 commit comments

Comments
 (0)