mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	More cleanup - needs to think a little about NewSOA()
This commit is contained in:
		| @@ -147,6 +147,14 @@ func (g Etcd) Ttl(node *etcdc.Node, serv *msg.Service) uint32 { | ||||
| 	return serv.Ttl | ||||
| } | ||||
|  | ||||
| // etcNameError checks if the error is ErrorCodeKeyNotFound from etcd. | ||||
| func isEtcdNameError(err error) bool { | ||||
| 	if e, ok := err.(etcdc.Error); ok && e.Code == etcdc.ErrorCodeKeyNotFound { | ||||
| 		return true | ||||
| 	} | ||||
| 	return false | ||||
| } | ||||
|  | ||||
| const ( | ||||
| 	priority   = 10  // default priority when nothing is set | ||||
| 	ttl        = 300 // default ttl when nothing is set | ||||
|   | ||||
		Reference in New Issue
	
	Block a user