Skip to content

Commit

Permalink
[FAB-8299] Rename ChannelConfig to Config
Browse files Browse the repository at this point in the history
Change-Id: If8d9358d7ad5ff9ccd72443970255593fd6d68e5
Signed-off-by: Sandra Vrtikapa <sandra.vrtikapa@securekey.com>
  • Loading branch information
sandrask committed Feb 14, 2018
1 parent b447674 commit 614551a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion api/apifabclient/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type ChannelProvider interface {

// ChannelService supplies services related to a channel.
type ChannelService interface {
ChannelConfig() (ChannelConfig, error)
Config() (ChannelConfig, error)
Ledger() (ChannelLedger, error)
Channel() (Channel, error)
EventHub() (EventHub, error) // TODO support new event delivery
Expand Down
4 changes: 2 additions & 2 deletions pkg/fabric-client/mocks/mockchprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ func (cs *MockChannelService) Channel() (fab.Channel, error) {
return ch, nil
}

// ChannelConfig ...
func (cs *MockChannelService) ChannelConfig() (fab.ChannelConfig, error) {
// Config ...
func (cs *MockChannelService) Config() (fab.ChannelConfig, error) {
return nil, nil
}

Expand Down
4 changes: 2 additions & 2 deletions pkg/fabsdk/provider/chpvdr/chprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ func (cs *ChannelService) EventHub() (apifabclient.EventHub, error) {
return cs.fabricProvider.CreateEventHub(cs.identityContext, cs.cfg.Name())
}

// ChannelConfig returns the ChannelConfig for the named channel
func (cs *ChannelService) ChannelConfig() (apifabclient.ChannelConfig, error) {
// Config returns the Config for the named channel
func (cs *ChannelService) Config() (apifabclient.ChannelConfig, error) {
return cs.fabricProvider.CreateChannelConfig(cs.identityContext, cs.cfg.Name())
}

Expand Down
4 changes: 2 additions & 2 deletions test/integration/sdk/channel_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func TestChannelConfig(t *testing.T) {
t.Fatalf("Failed to create new channel service: %s", err)
}

cfg, err := cs.ChannelConfig()
cfg, err := cs.Config()
if err != nil {
t.Fatalf("Failed to create new channel config: %s", err)
}
Expand Down Expand Up @@ -97,7 +97,7 @@ func TestChannelConfigWithOrderer(t *testing.T) {
t.Fatalf("Failed to create new channel service: %s", err)
}

cfg, err := cs.ChannelConfig()
cfg, err := cs.Config()
if err != nil {
t.Fatalf("Failed to create new channel config: %s", err)
}
Expand Down

0 comments on commit 614551a

Please sign in to comment.