Skip to content

Commit

Permalink
fix revive errors
Browse files Browse the repository at this point in the history
  • Loading branch information
PanGan21 committed Mar 17, 2023
1 parent 03317b8 commit 6040c5f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/fabric/client/invokehandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6040c5f

Please sign in to comment.