Skip to content

Commit

Permalink
fix struct + interface option application
Browse files Browse the repository at this point in the history
  • Loading branch information
MKrupauskas authored and jeffbean committed Jul 24, 2024
1 parent d4d09a5 commit ba19137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnshostprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type DNSHostProvider struct {
func NewDNSHostProvider(options ...DNSHostProviderOption) *DNSHostProvider {
var provider DNSHostProvider
for _, option := range options {
option(&provider)
option.apply(&provider)
}
return &provider
}
Expand Down

0 comments on commit ba19137

Please sign in to comment.