mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 02:33:14 -04:00
Fix various issues with formatting and typos (#424)
* Fix typos * Simplify code * Fix error usage
This commit is contained in:
committed by
Miek Gieben
parent
f402b8f726
commit
ece3cf8ecf
2
middleware/cache/item.go
vendored
2
middleware/cache/item.go
vendored
@@ -47,7 +47,7 @@ func newItem(m *dns.Msg, d time.Duration) *item {
|
||||
}
|
||||
|
||||
// toMsg turns i into a message, it tailers the reply to m.
|
||||
// The Autoritative bit is always set to 0, because the answer is from the cache.
|
||||
// The Authoritative bit is always set to 0, because the answer is from the cache.
|
||||
func (i *item) toMsg(m *dns.Msg) *dns.Msg {
|
||||
m1 := new(dns.Msg)
|
||||
m1.SetReply(m)
|
||||
|
||||
Reference in New Issue
Block a user