Fix breaking import
This commit is contained in:
parent
af5d7a3420
commit
b1163b9dee
@ -5,7 +5,7 @@ import (
|
|||||||
"math"
|
"math"
|
||||||
"time"
|
"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"
|
||||||
"github.com/micro/go-micro/sync/task/local"
|
"github.com/micro/go-micro/sync/task/local"
|
||||||
"github.com/micro/go-micro/util/log"
|
"github.com/micro/go-micro/util/log"
|
||||||
@ -80,7 +80,7 @@ func NewCron(opts ...Option) Cron {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if options.Leader == nil {
|
if options.Leader == nil {
|
||||||
options.Leader = consul.NewLeader()
|
options.Leader = etcd.NewLeader()
|
||||||
}
|
}
|
||||||
|
|
||||||
if options.Task == nil {
|
if options.Task == nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user