builder: Don't require specific NetAPI impl in StorageMinerAPI

This commit is contained in:
Łukasz Magiera
2021-07-15 12:01:13 +02:00
parent 49e26cce7d
commit 812dc266cf
5 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -245,7 +245,7 @@ func ConfigCommon(cfg *config.Common, enableLibp2pNode bool) Option {
}),
ApplyIf(func(s *Settings) bool { return s.Base }), // apply only if Base has already been applied
If(!enableLibp2pNode,
Override(new(api.Net), From(new(api.NetStub))),
Override(new(api.Net), new(api.NetStub)),
Override(new(api.Common), From(new(common.CommonAPI))),
),
If(enableLibp2pNode,