Skip to content

Commit

Permalink
[FAB-5110] Added eventhub disconnect in InvokeChaincode
Browse files Browse the repository at this point in the history
Change-Id: I89542cc593935c1e5fac4a5ab5134084c931d2cb
Signed-off-by: Emir Heidinger <emir.heidinger@securekey.com>
  • Loading branch information
emirsh committed Jun 29, 2017
1 parent 1876110 commit 180a594
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fabric-txn/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ func InvokeChaincode(client api.FabricClient, channel api.Channel, targets []api
if err != nil {
return fmt.Errorf("Error connecting to eventhub: %v", err)
}
defer eventHub.Disconnect()
}

transactionProposalResponses, txID, err := internal.CreateAndSendTransactionProposal(channel,
Expand Down

0 comments on commit 180a594

Please sign in to comment.