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"
"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 {
@ -152,14 +150,6 @@ func NewMap(opts ...Option) Map {
o(&options)
}
if options.Lock == nil {
options.Lock = lock.NewLock()
}
if options.Store == nil {
options.Store = ckv.NewStore()
}
return &syncMap{
opts: options,
}