Commit 9cea32f0 authored by varyoo's avatar varyoo Committed by corbot[bot]

dnstap.TapperFromContext always returns nil (#2018)

Automatically submitted.
parent 2b487819
package dnstap
import (
"context"
"testing"
)
func TestDnstapContext(t *testing.T) {
ctx := tapContext{context.TODO(), Dnstap{}}
tapper := TapperFromContext(ctx)
if tapper == nil {
t.Fatal("Can't get tapper")
}
}
......@@ -51,7 +51,7 @@ func TapperFromContext(ctx context.Context) (t Tapper) {
}
// TapMessage implements Tapper.
func (h *Dnstap) TapMessage(m *tap.Message) {
func (h Dnstap) TapMessage(m *tap.Message) {
t := tap.Dnstap_MESSAGE
h.IO.Dnstap(tap.Dnstap{
Type: &t,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment