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
b7bbfef6
Commit
b7bbfef6
authored
Nov 05, 2018
by
moredhel
Committed by
Yong Tang
Nov 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typo (#2272)
parent
756749c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
plugin/plugin.go
plugin/plugin.go
+1
-1
No files found.
plugin/plugin.go
View file @
b7bbfef6
...
@@ -68,7 +68,7 @@ func (f HandlerFunc) Name() string { return "handlerfunc" }
...
@@ -68,7 +68,7 @@ func (f HandlerFunc) Name() string { return "handlerfunc" }
// Error returns err with 'plugin/name: ' prefixed to it.
// Error returns err with 'plugin/name: ' prefixed to it.
func
Error
(
name
string
,
err
error
)
error
{
return
fmt
.
Errorf
(
"%s/%s: %s"
,
"plugin"
,
name
,
err
)
}
func
Error
(
name
string
,
err
error
)
error
{
return
fmt
.
Errorf
(
"%s/%s: %s"
,
"plugin"
,
name
,
err
)
}
// NextOrFailure calls next.ServeDNS when next is not nil
l
, otherwise it will return, a ServerFailure and a nil error.
// NextOrFailure calls next.ServeDNS when next is not nil, otherwise it will return, a ServerFailure and a nil error.
func
NextOrFailure
(
name
string
,
next
Handler
,
ctx
context
.
Context
,
w
dns
.
ResponseWriter
,
r
*
dns
.
Msg
)
(
int
,
error
)
{
// nolint: golint
func
NextOrFailure
(
name
string
,
next
Handler
,
ctx
context
.
Context
,
w
dns
.
ResponseWriter
,
r
*
dns
.
Msg
)
(
int
,
error
)
{
// nolint: golint
if
next
!=
nil
{
if
next
!=
nil
{
if
span
:=
ot
.
SpanFromContext
(
ctx
);
span
!=
nil
{
if
span
:=
ot
.
SpanFromContext
(
ctx
);
span
!=
nil
{
...
...
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