Skip to content

Commit

Permalink
Expose driver name
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandros Filios <[email protected]>
  • Loading branch information
alexandrosfilios committed Nov 13, 2024
1 parent 219f931 commit 9a7e6c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions platform/fabric/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ type ConfigService struct {
confService driver.ConfigService
}

func (s *ConfigService) DriverName() string {
return s.confService.DriverName()
}

func (s *ConfigService) GetString(key string) string {
return s.confService.GetString(key)
}
Expand Down
3 changes: 2 additions & 1 deletion platform/fabric/sdk/dig/generic/providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"github.com/hyperledger-labs/fabric-smart-client/platform/fabric/core"
"github.com/hyperledger-labs/fabric-smart-client/platform/fabric/core/generic"
"github.com/hyperledger-labs/fabric-smart-client/platform/fabric/core/generic/committer"
config2 "github.com/hyperledger-labs/fabric-smart-client/platform/fabric/core/generic/config"
gdriver "github.com/hyperledger-labs/fabric-smart-client/platform/fabric/core/generic/driver"
"github.com/hyperledger-labs/fabric-smart-client/platform/fabric/core/generic/driver/config"
"github.com/hyperledger-labs/fabric-smart-client/platform/fabric/core/generic/ledger"
Expand Down Expand Up @@ -58,7 +59,7 @@ func NewDriver(in struct {
IdentityLoaders []gdriver.NamedIdentityLoader `group:"identity-loaders"`
}) core.NamedDriver {
d := core.NamedDriver{
Name: "generic",
Name: config2.GenericDriver,
Driver: gdriver.NewProvider(
in.ConfigProvider,
in.MetricsProvider,
Expand Down

0 comments on commit 9a7e6c9

Please sign in to comment.