From f0b58959c6bed80b2e13ac9413f6cea281283f28 Mon Sep 17 00:00:00 2001 From: Troy Ronda Date: Sat, 10 Mar 2018 20:27:46 -0500 Subject: [PATCH] [FAB-8769] Remove channel.Close Change-Id: I7084b1a4a2ecafa0b131f95e5430a3a86a93a22d Signed-off-by: Troy Ronda --- pkg/client/channel/chclient.go | 8 -------- pkg/client/channel/chclient_test.go | 2 -- 2 files changed, 10 deletions(-) diff --git a/pkg/client/channel/chclient.go b/pkg/client/channel/chclient.go index da25ecbaf1..cd9eb02aad 100644 --- a/pkg/client/channel/chclient.go +++ b/pkg/client/channel/chclient.go @@ -239,14 +239,6 @@ func (cc *Client) addDefaultTimeout(timeOutType core.TimeoutType, options ...Opt return options } -// Close ... -// TODO: This function should probably be deprecated since all -// resources (including caches) are on the providers and will -// be freed when Close() is called on the SDK. -func (cc *Client) Close() error { - return nil -} - // RegisterChaincodeEvent registers chain code event // @param {chan bool} channel which receives event details when the event is complete // @returns {object} object handle that should be used to unregister diff --git a/pkg/client/channel/chclient_test.go b/pkg/client/channel/chclient_test.go index 9aca433425..c602dcdac3 100644 --- a/pkg/client/channel/chclient_test.go +++ b/pkg/client/channel/chclient_test.go @@ -365,8 +365,6 @@ func TestOrdererStatusError(t *testing.T) { assert.EqualValues(t, status.ConnectionFailed, status.ToSDKStatusCode(statusError.Code)) assert.Equal(t, status.OrdererClientStatus, statusError.Group) assert.Equal(t, testErrorMessage, statusError.Message, "Expected response message from server") - - chClient.Close() } func TestTransactionValidationError(t *testing.T) {