Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
Coredns
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
Coredns
Commits
9cea32f0
Commit
9cea32f0
authored
Aug 02, 2018
by
varyoo
Committed by
corbot[bot]
Aug 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dnstap.TapperFromContext always returns nil (#2018)
Automatically submitted.
parent
2b487819
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
plugin/dnstap/context_test.go
plugin/dnstap/context_test.go
+15
-0
plugin/dnstap/handler.go
plugin/dnstap/handler.go
+1
-1
No files found.
plugin/dnstap/context_test.go
0 → 100644
View file @
9cea32f0
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"
)
}
}
plugin/dnstap/handler.go
View file @
9cea32f0
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment