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

BREAKING CHANGE: remove NewResolver NewTransport #12

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

bassosimone
Copy link
Member

This diff removes the NewResolver and NewTransport constructors, which were just constructing the zero value.

Semantically, I expect a constructor to create a valid value and I was not doing this. So, the simplest diff/fix for that is to just remove the constructors and their implicit promise they are constructing.

Users of dnscore will need to update their code accordinggly:

  • replace NewTransport() with &Transport{};

  • replace NewResolver() with &Resolver{}.

This diff removes the NewResolver and NewTransport constructors,
which were just constructing the zero value.

Semantically, I expect a constructor to create a valid value and I was
not doing this. So, the simplest diff/fix for that is to just remove
the constructors and their implicit promise they are constructing.

Users of `dnscore` will need to update their code accordinggly:

- replace `NewTransport()` with `&Transport{}`;

- replace `NewResolver()` with `&Resolver{}`.
@bassosimone bassosimone merged commit 55a1286 into main Nov 25, 2024
1 check passed
@bassosimone bassosimone deleted the refactor/dropctors branch November 25, 2024 07: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.

1 participant