Skip to content

fix: remove no-op deadline methods from streamAdapter (PILOT-79)#2

Open
matthew-pilot wants to merge 1 commit into
mainfrom
openclaw/pilot-79-20260528-030250
Open

fix: remove no-op deadline methods from streamAdapter (PILOT-79)#2
matthew-pilot wants to merge 1 commit into
mainfrom
openclaw/pilot-79-20260528-030250

Conversation

@matthew-pilot
Copy link
Copy Markdown
Collaborator

What

Removes the three no-op deadline shims from streamAdapter:

  • SetDeadline
  • SetReadDeadline
  • SetWriteDeadline

Updates the ceiling test to reflect the interface change.

Why

These methods returned nil without updating any underlying state. Plugin authors calling them believed deadlines were being set — nothing happened.

The sibling PR in TeoSlayer/pilotprotocol removes these methods from the coreapi.Stream interface. The interface change gives callers a compile-time error instead of a silent runtime no-op.

Dependencies

⚠️ Merge TeoSlayer/pilotprotocol PR first — this PR relies on the updated coreapi.Stream interface.

Related

Remove SetDeadline, SetReadDeadline, SetWriteDeadline from streamAdapter.
These were no-ops that silently returned nil, misleading plugin authors.

Depends on the sibling PR in TeoSlayer/pilotprotocol which removes
the same methods from the coreapi.Stream interface — merge that PR
first, then this one.
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.

1 participant