diff --git a/sync/cron.go b/sync/cron.go index f5dcdb0f..0fd479a1 100644 --- a/sync/cron.go +++ b/sync/cron.go @@ -5,7 +5,7 @@ import ( "math" "time" - "github.com/micro/go-micro/sync/leader/consul" + "github.com/micro/go-micro/sync/leader/etcd" "github.com/micro/go-micro/sync/task" "github.com/micro/go-micro/sync/task/local" "github.com/micro/go-micro/util/log" @@ -80,7 +80,7 @@ func NewCron(opts ...Option) Cron { } if options.Leader == nil { - options.Leader = consul.NewLeader() + options.Leader = etcd.NewLeader() } if options.Task == nil {