Revert "Implement notifies for transfer plugin (#3972)" (#3995)

This reverts commit 68f1dd5ddf.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
Yong Tang
2020-07-08 09:00:26 -07:00
committed by GitHub
parent 68f1dd5ddf
commit 614d08cba2
42 changed files with 988 additions and 707 deletions

View File

@@ -5,7 +5,6 @@ import (
"sync"
"github.com/coredns/coredns/plugin/file"
"github.com/coredns/coredns/plugin/transfer"
)
// Zones maps zone names to a *Zone. This keeps track of what zones we have loaded at
@@ -43,7 +42,7 @@ func (z *Zones) Zones(name string) *file.Zone {
// Add adds a new zone into z. If zo.NoReload is false, the
// reload goroutine is started.
func (z *Zones) Add(zo *file.Zone, name string, t *transfer.Transfer) {
func (z *Zones) Add(zo *file.Zone, name string) {
z.Lock()
if z.Z == nil {
@@ -52,7 +51,7 @@ func (z *Zones) Add(zo *file.Zone, name string, t *transfer.Transfer) {
z.Z[name] = zo
z.names = append(z.names, name)
zo.Reload(t)
zo.Reload()
z.Unlock()
}