Skip to content

refactor: split PeerImpl along its responsibilities - #531

Merged
devopvoid merged 8 commits into
mainfrom
refactor/split-peer-impl
Nov 4, 2026
Merged

devopvoid merged 8 commits into
mainfrom
refactor/split-peer-impl

Conversation

@devopvoid

Copy link
Copy Markdown
Owner

Moves statistics, data channels, remote tracks, codec selection, the signaling transport and manual negotiation out of PeerImpl into package-private classes, one commit each. PeerImpl goes from 1723 to 903 lines and keeps the lifecycle, senders and public futures. Each new class documents which state belongs to which executor; the public API is unchanged.

Also fixes onStats handlers, which could run on the timer's thread instead of the event executor (separate commit), and adds tests that pin where handlers run.

@devopvoid
devopvoid merged commit 05dc8a7 into main Nov 4, 2026
23 checks passed
@devopvoid
devopvoid deleted the refactor/split-peer-impl branch November 4, 2026 21:56
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