Generalize updater.go

This commit is contained in:
Bryan Boreham committed 2015-04-01 16:48:11 +01:00
1 parent 3dad9fb593
commit 68096b0437
3 files changed
+16 -7

No files matched your search

+2 -1
View File
@@ -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)
}