Skip to content

Use the new codec interfaces#648

Open
dennwc wants to merge 1 commit intomainfrom
new-codec-interface
Open

Use the new codec interfaces#648
dennwc wants to merge 1 commit intomainfrom
new-codec-interface

Conversation

@dennwc
Copy link
Copy Markdown
Contributor

@dennwc dennwc commented Apr 7, 2026

@dennwc dennwc self-assigned this Apr 7, 2026
@dennwc dennwc requested a review from a team as a code owner April 7, 2026 16:31
@dennwc dennwc force-pushed the new-codec-interface branch 2 times, most recently from 8409020 to 9c3302c Compare April 7, 2026 16:56
Copy link
Copy Markdown
Contributor

@alexlivekit alexlivekit left a comment

Choose a reason for hiding this comment

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

overall lgtm

Comment on lines +47 to +54
type nopCloser struct {
*SilenceSuppressionTester
}

func (s nopCloser) Close() error {
return nil
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Doesn't SilenceSuppressionTester already have func (s *SilenceSuppressionTester) Close() error?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It does, but the signature is slightly different. The HandlerCloser has Close(), while Writer was Close() error. This is why it needs a tiny adapter to act like both at the same time.

@dennwc dennwc force-pushed the new-codec-interface branch from 9c3302c to cc5537a Compare April 8, 2026 11:46
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