Skip to content

Prep for channel v5: bind handler invocation, send priorities #3942

Description

@plorenz

channel v5 removes two v4 APIs that have replacements already available in v4, so the switch can happen now to shrink the eventual v5 migration:

  • Binding.Bind(h) is removed from the Binding interface; the replacement is invoking the handler directly via h.BindChannel(binding)
  • the per-message send priority API (WithPriority, the Priority type and constants) is removed; prioritization in v5 is done by underlay selection, not queue reordering

Dropping WithPriority is behaviorally safe: the Highest-tagged dial requests ride the control sender, where priority was already a no-op on grouped channels; the High-tagged state messages deliberately ride the data channel for ordering, where the priority tag was a latent reorder hazard rather than a guarantee. Both match channel v5 behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions