Skip to content

revert: ReadWrite to ReadWriteCloser#496

Open
joe0BAB wants to merge 1 commit intomainfrom
hijack-revert
Open

revert: ReadWrite to ReadWriteCloser#496
joe0BAB wants to merge 1 commit intomainfrom
hijack-revert

Conversation

@joe0BAB
Copy link
Collaborator

@joe0BAB joe0BAB commented Mar 18, 2026

Got fooled by my own prior comments in the code. So reverting and updating them.

Signed-off-by: Johannes Großmann <grossmann.johannes@t-online.de>
@joe0BAB joe0BAB requested a review from Benehiko March 18, 2026 12:59
@joe0BAB joe0BAB marked this pull request as ready for review March 18, 2026 13:00
Copy link

@docker-agent docker-agent bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

Assessment: 🟢 APPROVE

This revert PR correctly changes the callback signature from io.ReadWriter to io.ReadWriteCloser across all affected files. The changes are consistent and include an appropriate update to the defer statement that explicitly ignores double-close errors, which is correct given the updated comment explaining that the callback might need to call Close() to unblock pending reads.

Files reviewed:

  • plugin/config_test.go
  • x/ipc/hijack.go
  • x/ipc/hijack_test.go

Findings: No bugs detected in the changed code.

The revert is safe to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants