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

Commit f2c267a

Browse files
committed
[FAB-8782] Check correct err in connection
Change-Id: Iff46d7dc2a297dcc60e2f6afb9a547e4ffea175b Signed-off-by: Troy Ronda <troy@troyronda.com>
1 parent 96a926d commit f2c267a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/fab/comm/connection.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func NewConnection(ctx fabcontext.Client, chConfig fab.ChannelCfg, streamProvide
6363

6464
stream, err := streamProvider(grpcconn)
6565
if err != nil {
66-
if closeErr := grpcconn.Close(); err != nil {
66+
if closeErr := grpcconn.Close(); closeErr != nil {
6767
logger.Warnf("error closing GRPC connection: %s", closeErr)
6868
}
6969
return nil, errors.Wrapf(err, "could not create stream to %s", url)

0 commit comments

Comments
 (0)