Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Shutdown into a separate interface to revert breaking change. #135

Merged
merged 1 commit into from May 25, 2022

Conversation

banks
Copy link
Member

@banks banks commented May 24, 2022

#132 Added a new Shutdown method that solves a specific problem with short-lived processes.

Unfortunately since it added a new method to a public interface it broke backwards compatibility for other users of this library. We retracted the release v0.3.11 in #134.

Technically this library is still "zerover" since it's not yet made it to the 1.0.0 milestone and likely never will, but it is used widely in HashiCorp tools so it's preferable not to break downstream builds!

This PR moves the new Shutdown method into a separate interface that can be optionally implemented by Sinks. I also remove all the no-op implementations for built-in Sinks since they are not longer necessary.

@ggambetti would love to know if this will cause any issues for you? I think it should be compatible and tests all pass as before.

Copy link
Member

@ggambetti ggambetti left a comment

Choose a reason for hiding this comment

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

Looks good to me. 👍

@banks banks merged commit 129ee86 into master May 25, 2022
@banks banks deleted the shutdown-refactor branch May 25, 2022 15:01
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.

None yet

3 participants