fix double mutex.
This commit is contained in:
parent
0070d2716c
commit
044674487e
@ -42,14 +42,11 @@ type Stores struct {
|
|||||||
// ChainReadObj RPC.
|
// ChainReadObj RPC.
|
||||||
func NewProxyingStores(ctx context.Context, api api.FullNode) *Stores {
|
func NewProxyingStores(ctx context.Context, api api.FullNode) *Stores {
|
||||||
ds := dssync.MutexWrap(ds.NewMapDatastore())
|
ds := dssync.MutexWrap(ds.NewMapDatastore())
|
||||||
ds = dssync.MutexWrap(ds)
|
|
||||||
|
|
||||||
bs := &proxyingBlockstore{
|
bs := &proxyingBlockstore{
|
||||||
ctx: ctx,
|
ctx: ctx,
|
||||||
api: api,
|
api: api,
|
||||||
Blockstore: blockstore.NewBlockstore(ds),
|
Blockstore: blockstore.NewBlockstore(ds),
|
||||||
}
|
}
|
||||||
|
|
||||||
return NewStores(ctx, ds, bs)
|
return NewStores(ctx, ds, bs)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user