Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit 614551a

Browse files
committed
[FAB-8299] Rename ChannelConfig to Config
Change-Id: If8d9358d7ad5ff9ccd72443970255593fd6d68e5 Signed-off-by: Sandra Vrtikapa <sandra.vrtikapa@securekey.com>
1 parent b447674 commit 614551a

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

api/apifabclient/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type ChannelProvider interface {
3131

3232
// ChannelService supplies services related to a channel.
3333
type ChannelService interface {
34-
ChannelConfig() (ChannelConfig, error)
34+
Config() (ChannelConfig, error)
3535
Ledger() (ChannelLedger, error)
3636
Channel() (Channel, error)
3737
EventHub() (EventHub, error) // TODO support new event delivery

pkg/fabric-client/mocks/mockchprovider.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ func (cs *MockChannelService) Channel() (fab.Channel, error) {
6464
return ch, nil
6565
}
6666

67-
// ChannelConfig ...
68-
func (cs *MockChannelService) ChannelConfig() (fab.ChannelConfig, error) {
67+
// Config ...
68+
func (cs *MockChannelService) Config() (fab.ChannelConfig, error) {
6969
return nil, nil
7070
}
7171

pkg/fabsdk/provider/chpvdr/chprovider.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ func (cs *ChannelService) EventHub() (apifabclient.EventHub, error) {
8888
return cs.fabricProvider.CreateEventHub(cs.identityContext, cs.cfg.Name())
8989
}
9090

91-
// ChannelConfig returns the ChannelConfig for the named channel
92-
func (cs *ChannelService) ChannelConfig() (apifabclient.ChannelConfig, error) {
91+
// Config returns the Config for the named channel
92+
func (cs *ChannelService) Config() (apifabclient.ChannelConfig, error) {
9393
return cs.fabricProvider.CreateChannelConfig(cs.identityContext, cs.cfg.Name())
9494
}
9595

test/integration/sdk/channel_config_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func TestChannelConfig(t *testing.T) {
4646
t.Fatalf("Failed to create new channel service: %s", err)
4747
}
4848

49-
cfg, err := cs.ChannelConfig()
49+
cfg, err := cs.Config()
5050
if err != nil {
5151
t.Fatalf("Failed to create new channel config: %s", err)
5252
}
@@ -97,7 +97,7 @@ func TestChannelConfigWithOrderer(t *testing.T) {
9797
t.Fatalf("Failed to create new channel service: %s", err)
9898
}
9999

100-
cfg, err := cs.ChannelConfig()
100+
cfg, err := cs.Config()
101101
if err != nil {
102102
t.Fatalf("Failed to create new channel config: %s", err)
103103
}

0 commit comments

Comments
 (0)