mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 08:44:17 -04:00
Fix error handling when query fails (#2255)
This commit is contained in:
committed by
Yong Tang
parent
d42e0d4562
commit
e332c8d8cb
@@ -77,6 +77,12 @@ func (l *Loop) inc() {
|
||||
l.i++
|
||||
}
|
||||
|
||||
func (l *Loop) reset() {
|
||||
l.Lock()
|
||||
defer l.Unlock()
|
||||
l.i = 0
|
||||
}
|
||||
|
||||
func (l *Loop) setDisabled() {
|
||||
l.Lock()
|
||||
defer l.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user