Skip to content

Commit

Permalink
Use parallel dependency resolver
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandros Filios <[email protected]>
  • Loading branch information
alexandrosfilios committed Sep 2, 2024
1 parent 914fa56 commit 94f42c5
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions token/sdk/dig/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
dig2 "github.com/hyperledger-labs/fabric-smart-client/platform/common/sdk/dig"
digutils "github.com/hyperledger-labs/fabric-smart-client/platform/common/utils/dig"
"github.com/hyperledger-labs/fabric-smart-client/platform/fabric/core"
"github.com/hyperledger-labs/fabric-smart-client/platform/fabric/core/generic/committer"
fabricsdk "github.com/hyperledger-labs/fabric-smart-client/platform/fabric/sdk/dig"
"github.com/hyperledger-labs/fabric-smart-client/platform/view/driver"
"github.com/hyperledger-labs/fabric-smart-client/platform/view/services/kvs"
Expand Down Expand Up @@ -145,12 +146,12 @@ func (p *SDK) Install() error {
}

// Overwrite dependencies
//err = p.Container().Decorate(func(metricsProvider metrics.Provider) metrics.Provider {
// return operations.NewDisabledHistogram(metricsProvider)
//})
//if err != nil {
// return errors.WithMessagef(err, "failed setting up decorator")
//}
err = p.Container().Decorate(func(committer.DependencyResolver) committer.DependencyResolver {
return committer.NewParallelDependencyResolver()
})
if err != nil {
return errors.WithMessagef(err, "failed setting up decorator")
}

if err := p.SDK.Install(); err != nil {
return errors.WithMessagef(err, "failed installing dig chain")
Expand Down

0 comments on commit 94f42c5

Please sign in to comment.