Generalize updater.go
This commit is contained in:
1 parent
3dad9fb593
commit
68096b0437
3 files changed
+16
-7
No files matched your search
+2
-1
@@ -4,6 +4,7 @@ import (
|
||||
"flag"
|
||||
"fmt"
|
||||
. "github.com/zettio/weave/common"
|
||||
"github.com/zettio/weave/common/updater"
|
||||
weavedns "github.com/zettio/weave/nameserver"
|
||||
weavenet "github.com/zettio/weave/net"
|
||||
"io"
|
||||
@@ -57,7 +58,7 @@ func main() {
|
||||
var zone = new(weavedns.ZoneDb)
|
||||
|
||||
if watch {
|
||||
err := weavedns.StartUpdater(apiPath, zone)
|
||||
err := updater.Start(apiPath, zone)
|
||||
if err != nil {
|
||||
Error.Fatal("Unable to start watcher", err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user