use NetAddrListener iface

This commit is contained in:
Anton Evangelatov 2022-02-02 16:01:19 +01:00
parent 03dd33dbbe
commit faa3a79a5f

View File

@ -611,11 +611,6 @@ func StorageProvider(minerAddress dtypes.MinerAddress,
opt := storageimpl.CustomDealDecisionLogic(storageimpl.DealDeciderFunc(df))
ai, err := fullnodeApi.NetAddrsListen(context.Background())
if err != nil {
return nil, err
}
return storageimpl.NewProvider(
net,
namespace.Wrap(ds, datastore.NewKey("/deals/provider")),
@ -627,7 +622,7 @@ func StorageProvider(minerAddress dtypes.MinerAddress,
spn,
address.Address(minerAddress),
storedAsk,
ai,
fullnodeApi,
idxProvHost.Host,
opt,
)