From 03725d3b3ff7ca9bcca76521d37709ff367c92fb Mon Sep 17 00:00:00 2001 From: PanGan21 Date: Fri, 17 Mar 2023 20:07:04 +0100 Subject: [PATCH] fix revive errors Signed-off-by: PanGan21 --- internal/fabric/client/invokehandler.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/fabric/client/invokehandler.go b/internal/fabric/client/invokehandler.go index cc64761..2db1668 100644 --- a/internal/fabric/client/invokehandler.go +++ b/internal/fabric/client/invokehandler.go @@ -26,17 +26,17 @@ import ( // adapted from the CommitHandler in https://github.com/hyperledger/fabric-sdk-go // in order to custom process the transaction status event -type txSubmitAndListenHandler struct { +type TxSubmitAndListenHandler struct { txStatusEvent *fab.TxStatusEvent } -func NewTxSubmitAndListenHandler(txStatus *fab.TxStatusEvent) *txSubmitAndListenHandler { - return &txSubmitAndListenHandler{ +func NewTxSubmitAndListenHandler(txStatus *fab.TxStatusEvent) *TxSubmitAndListenHandler { + return &TxSubmitAndListenHandler{ txStatusEvent: txStatus, } } -func (h *txSubmitAndListenHandler) Handle(requestContext *invoke.RequestContext, clientContext *invoke.ClientContext) { +func (h *TxSubmitAndListenHandler) Handle(requestContext *invoke.RequestContext, clientContext *invoke.ClientContext) { txnID := requestContext.Response.TransactionID // Register Tx event