mirror of
https://github.com/coredns/coredns.git
synced 2026-04-05 11:45:33 -04:00
lint(revive): fix unused-parameter violations (#7980)
This commit is contained in:
@@ -3,6 +3,6 @@ package erratic
|
||||
import "github.com/coredns/coredns/request"
|
||||
|
||||
// AutoPath implements the AutoPathFunc call from the autopath plugin.
|
||||
func (e *Erratic) AutoPath(state request.Request) []string {
|
||||
func (e *Erratic) AutoPath(_state request.Request) []string {
|
||||
return []string{"a.example.org.", "b.example.org.", ""}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ type Erratic struct {
|
||||
}
|
||||
|
||||
// ServeDNS implements the plugin.Handler interface.
|
||||
func (e *Erratic) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) {
|
||||
func (e *Erratic) ServeDNS(_ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) {
|
||||
state := request.Request{W: w, Req: r}
|
||||
drop := false
|
||||
delay := false
|
||||
|
||||
@@ -18,7 +18,7 @@ func setup(c *caddy.Controller) error {
|
||||
return plugin.Error("erratic", err)
|
||||
}
|
||||
|
||||
dnsserver.GetConfig(c).AddPlugin(func(next plugin.Handler) plugin.Handler {
|
||||
dnsserver.GetConfig(c).AddPlugin(func(_next plugin.Handler) plugin.Handler {
|
||||
return e
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user