Skip to content

Commit 8bdefeb

Browse files
committed
[FAB-14770] remove dead code
The responseChan is never closed... Change-Id: I65d9b9f4903b398fdb8450e38b25f2cc5af516ee Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
1 parent 3261ce1 commit 8bdefeb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

core/chaincode/shim/handler.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,7 @@ func (h *Handler) sendReceive(msg *pb.ChaincodeMessage, responseChan <-chan pb.C
136136
if err != nil {
137137
return pb.ChaincodeMessage{}, err
138138
}
139-
case outmsg, val := <-responseChan:
140-
if !val {
141-
return pb.ChaincodeMessage{}, errors.New("unexpected failure on receive")
142-
}
139+
case outmsg := <-responseChan:
143140
return outmsg, nil
144141
}
145142
}

0 commit comments

Comments
 (0)