Skip to content

Commit 9c54ba3

Browse files
committed
[FAB-8132] Fix typo in lockbased_txmgr.go
The word listener is mis-spelled. Change-Id: Iad2bb8fd9ea65f256d109a4abe51814d557fddc5 Signed-off-by: yacovm <yacovm@il.ibm.com>
1 parent 0cb7692 commit 9c54ba3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/ledger/kvledger/txmgmt/txmgr/lockbasedtxmgr/lockbased_txmgr.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ func (txmgr *LockBasedTxMgr) ValidateAndPrepare(blockAndPvtdata *ledger.BlockAnd
8282
func (txmgr *LockBasedTxMgr) invokeNamespaceListeners(batch *privacyenabledstate.UpdateBatch) error {
8383
namespaces := batch.PubUpdates.GetUpdatedNamespaces()
8484
for _, namespace := range namespaces {
85-
listerner := txmgr.stateListeners[namespace]
86-
if listerner == nil {
85+
listener := txmgr.stateListeners[namespace]
86+
if listener == nil {
8787
continue
8888
}
8989
logger.Debugf("Invoking listener for state changes over namespace:%s", namespace)
@@ -92,7 +92,7 @@ func (txmgr *LockBasedTxMgr) invokeNamespaceListeners(batch *privacyenabledstate
9292
for key, versionedValue := range updatesMap {
9393
kvwrites = append(kvwrites, &kvrwset.KVWrite{Key: key, IsDelete: versionedValue.Value == nil, Value: versionedValue.Value})
9494
}
95-
if err := listerner.HandleStateUpdates(txmgr.ledgerid, kvwrites); err != nil {
95+
if err := listener.HandleStateUpdates(txmgr.ledgerid, kvwrites); err != nil {
9696
return err
9797
}
9898
}

0 commit comments

Comments
 (0)