mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	Only transfer a zone once (#117)
Use sync.Once to only transfer a zone once. Fixes #115
This commit is contained in:
		| @@ -1,6 +1,8 @@ | ||||
| package file | ||||
|  | ||||
| import ( | ||||
| 	"sync" | ||||
|  | ||||
| 	"github.com/miekg/coredns/middleware" | ||||
| 	"github.com/miekg/coredns/middleware/file/tree" | ||||
|  | ||||
| @@ -14,6 +16,7 @@ type Zone struct { | ||||
| 	*tree.Tree | ||||
|  | ||||
| 	TransferTo   []string | ||||
| 	StartupOnce  sync.Once | ||||
| 	TransferFrom []string | ||||
| 	Expired      *bool | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user