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

Commit f0b5895

Browse files
committed
[FAB-8769] Remove channel.Close
Change-Id: I7084b1a4a2ecafa0b131f95e5430a3a86a93a22d Signed-off-by: Troy Ronda <troy@troyronda.com>
1 parent 60d97ee commit f0b5895

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

pkg/client/channel/chclient.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -239,14 +239,6 @@ func (cc *Client) addDefaultTimeout(timeOutType core.TimeoutType, options ...Opt
239239
return options
240240
}
241241

242-
// Close ...
243-
// TODO: This function should probably be deprecated since all
244-
// resources (including caches) are on the providers and will
245-
// be freed when Close() is called on the SDK.
246-
func (cc *Client) Close() error {
247-
return nil
248-
}
249-
250242
// RegisterChaincodeEvent registers chain code event
251243
// @param {chan bool} channel which receives event details when the event is complete
252244
// @returns {object} object handle that should be used to unregister

pkg/client/channel/chclient_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,6 @@ func TestOrdererStatusError(t *testing.T) {
365365
assert.EqualValues(t, status.ConnectionFailed, status.ToSDKStatusCode(statusError.Code))
366366
assert.Equal(t, status.OrdererClientStatus, statusError.Group)
367367
assert.Equal(t, testErrorMessage, statusError.Message, "Expected response message from server")
368-
369-
chClient.Close()
370368
}
371369

372370
func TestTransactionValidationError(t *testing.T) {

0 commit comments

Comments
 (0)