mirror of
https://github.com/coredns/coredns.git
synced 2026-04-06 12:15:33 -04:00
lint(revive): fix unused-parameter violations (#7980)
This commit is contained in:
@@ -12,7 +12,7 @@ import (
|
||||
|
||||
type testProvider map[string]Func
|
||||
|
||||
func (tp testProvider) Metadata(ctx context.Context, state request.Request) context.Context {
|
||||
func (tp testProvider) Metadata(ctx context.Context, _state request.Request) context.Context {
|
||||
for k, v := range tp {
|
||||
SetValueFunc(ctx, k, v)
|
||||
}
|
||||
@@ -23,7 +23,7 @@ type testHandler struct{ ctx context.Context }
|
||||
|
||||
func (m *testHandler) Name() string { return "test" }
|
||||
|
||||
func (m *testHandler) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) {
|
||||
func (m *testHandler) ServeDNS(ctx context.Context, _w dns.ResponseWriter, _r *dns.Msg) (int, error) {
|
||||
m.ctx = ctx
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user