fixup sync map

This commit is contained in:
Asim Aslam 2020-04-10 17:47:13 +01:00
parent 57853b2849
commit b9a5e9d610

View File

@ -8,8 +8,6 @@ import (
"sort" "sort"
"github.com/micro/go-micro/v2/store" "github.com/micro/go-micro/v2/store"
ckv "github.com/micro/go-micro/v2/store/etcd"
lock "github.com/micro/go-micro/v2/sync/lock/etcd"
) )
type syncMap struct { type syncMap struct {
@ -152,14 +150,6 @@ func NewMap(opts ...Option) Map {
o(&options) o(&options)
} }
if options.Lock == nil {
options.Lock = lock.NewLock()
}
if options.Store == nil {
options.Store = ckv.NewStore()
}
return &syncMap{ return &syncMap{
opts: options, opts: options,
} }