Skip to content

Comments

remove pkg/broadcaster and make it internal to container/streams#49172

Merged
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:internalize_pkg_broadcaster
Jan 1, 2025
Merged

remove pkg/broadcaster and make it internal to container/streams#49172
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:internalize_pkg_broadcaster

Conversation

@thaJeztah
Copy link
Member

This package was only used internally in container/streams and had no external consumers.

- Description for the changelog

Go-SDK: remove pkg/broadcaster, as it was only used internally

- A picture of a cute animal (not mandatory but encouraged)

This package was only used internally in container/streams and had
no external consumers.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah added status/2-code-review impact/deprecation kind/refactor PR's that refactor, or clean-up code area/go-sdk impact/go-sdk Noteworthy (compatibility changes) in the Go SDK labels Dec 28, 2024
@thaJeztah thaJeztah added this to the 28.0.0 milestone Dec 28, 2024
@thaJeztah thaJeztah self-assigned this Dec 28, 2024
Comment on lines -45 to +49
func (c *Config) Stdout() *broadcaster.Unbuffered {
func (c *Config) Stdout() io.Writer {
return c.stdout
}

// Stderr returns the standard error in the configuration.
func (c *Config) Stderr() *broadcaster.Unbuffered {
func (c *Config) Stderr() io.Writer {
Copy link
Member Author

@thaJeztah thaJeztah Dec 28, 2024

Choose a reason for hiding this comment

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

⚠️ ☝️ Changed signature here to return io.Writer as the extra features provided by Unbuffered were only used internally, not by callers.

@thaJeztah thaJeztah mentioned this pull request Dec 28, 2024
79 tasks
Copy link
Contributor

@austinvazquez austinvazquez left a comment

Choose a reason for hiding this comment

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

LGTM

@thaJeztah thaJeztah merged commit 6f6c3b9 into moby:master Jan 1, 2025
160 checks passed
@thaJeztah thaJeztah deleted the internalize_pkg_broadcaster branch January 1, 2025 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/go-sdk impact/deprecation impact/go-sdk Noteworthy (compatibility changes) in the Go SDK kind/refactor PR's that refactor, or clean-up code status/2-code-review

Projects

Development

Successfully merging this pull request may close these issues.

2 participants