mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-06 19:44:01 +08:00
Fix offline gateway directory logic
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
This commit is contained in:
@ -212,9 +212,8 @@ func (api *CoreAPI) WithOptions(opts ...options.ApiOption) (coreiface.CoreAPI, e
|
||||
subApi.recordValidator = nil
|
||||
|
||||
subApi.exchange = offlinexch.Exchange(subApi.blockstore)
|
||||
subApi.blocks = bserv.New(api.blockstore, subApi.exchange)
|
||||
subApi.blocks = bserv.New(subApi.blockstore, subApi.exchange)
|
||||
subApi.dag = dag.NewDAGService(subApi.blocks)
|
||||
|
||||
}
|
||||
|
||||
return subApi, nil
|
||||
|
Reference in New Issue
Block a user