Skip to content

Add IoChannelCapTableEntry::getType().#6323

Merged
kentonv merged 1 commit intomainfrom
kenton/dynamic-ctx-exports
Mar 17, 2026
Merged

Add IoChannelCapTableEntry::getType().#6323
kentonv merged 1 commit intomainfrom
kenton/dynamic-ctx-exports

Conversation

@kentonv
Copy link
Member

@kentonv kentonv commented Mar 14, 2026

There's one place in the internal codebase that needs it.

@kentonv kentonv requested a review from harrishancock March 14, 2026 02:09
@kentonv kentonv requested review from a team as code owners March 14, 2026 02:09
@ask-bonk
Copy link
Contributor

ask-bonk bot commented Mar 14, 2026

The change is minimal and straightforward: a 2-line addition of a const getter for the private type field on IoChannelCapTableEntry. Let me verify there are no concerns:

  1. getType() is const-correct -- returns by value, marked const. Correct.
  2. No backward compatibility concern -- this is purely additive (a new public method on a C++ class, no schema change).
  3. No security concern -- the Type enum is already public, and getChannelNumber() already reveals the type indirectly (it throws on mismatch). This just provides a non-throwing way to query it.
  4. Naming follows KJ style -- getType() is the expected getter name for a field called type.
  5. No memory safety or concurrency concern -- trivial value-type return.

There are no actionable issues with this change.

LGTM

github run

@ask-bonk ask-bonk bot requested a review from a team as a code owner March 14, 2026 02:09
@kentonv kentonv force-pushed the kenton/dynamic-ctx-exports branch from 3d83640 to 4193c16 Compare March 17, 2026 18:54
There's one place in the internal codebase that needs it.
@kentonv kentonv force-pushed the kenton/dynamic-ctx-exports branch from 4193c16 to b879239 Compare March 17, 2026 19:24
@kentonv kentonv merged commit 7143daf into main Mar 17, 2026
22 checks passed
@kentonv kentonv deleted the kenton/dynamic-ctx-exports branch March 17, 2026 20:29
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.

4 participants