Skip to content

Commit

Permalink
fixup! Extract MSP manager provider, Docker functionality for NWO, an…
Browse files Browse the repository at this point in the history
…d channel provider to allow code re-use

Signed-off-by: Alexandros Filios <[email protected]>
  • Loading branch information
alexandrosfilios committed Nov 13, 2024
1 parent 9a7e6c9 commit c0a5bbd
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions platform/fabric/core/generic/driver/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,24 @@ func NewProvider(
kvss *kvs.KVS,
) *Provider {
return &Provider{
configProvider: configProvider,
channelProvider: channelProvider,
identityProvider: identity.NewProvider(configProvider, endpointService),
metricsProvider: metricsProvider,
sigService: sigService,
mspManagerProvider: &localMSPManagerProvider{
configProvider: configProvider,
endpointService: endpointService,
sigService: sigService,
identityLoaders: identityLoaders,
deserializerManager: deserializerManager,
idProvider: idProvider,
kvss: kvss,
},
configProvider: configProvider,
channelProvider: channelProvider,
identityProvider: identity.NewProvider(configProvider, endpointService),
metricsProvider: metricsProvider,
sigService: sigService,
mspManagerProvider: NewMSPManagerProvider(configProvider, endpointService, sigService, identityLoaders, deserializerManager, idProvider, kvss),
}
}

func NewMSPManagerProvider(configProvider config.Provider, endpointService identity.EndpointService, sigService *sig.Service, identityLoaders []NamedIdentityLoader, deserializerManager driver.DeserializerManager, idProvider vdriver.IdentityProvider, kvss *kvs.KVS) *localMSPManagerProvider {
return &localMSPManagerProvider{
configProvider: configProvider,
endpointService: endpointService,
sigService: sigService,
identityLoaders: identityLoaders,
deserializerManager: deserializerManager,
idProvider: idProvider,
kvss: kvss,
}
}

Expand Down

0 comments on commit c0a5bbd

Please sign in to comment.