From b1163b9dee9ff79c3908bc95b1c92236586cab82 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Thu, 3 Oct 2019 11:26:24 +0100 Subject: [PATCH] Fix breaking import --- sync/cron.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {