Skip to content

Commit

Permalink
[FAB-8132] Fix typo in lockbased_txmgr.go
Browse files Browse the repository at this point in the history
The word listener is mis-spelled.

Change-Id: Iad2bb8fd9ea65f256d109a4abe51814d557fddc5
Signed-off-by: yacovm <yacovm@il.ibm.com>
  • Loading branch information
yacovm committed Feb 8, 2018
1 parent 0cb7692 commit 9c54ba3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ func (txmgr *LockBasedTxMgr) ValidateAndPrepare(blockAndPvtdata *ledger.BlockAnd
func (txmgr *LockBasedTxMgr) invokeNamespaceListeners(batch *privacyenabledstate.UpdateBatch) error {
namespaces := batch.PubUpdates.GetUpdatedNamespaces()
for _, namespace := range namespaces {
listerner := txmgr.stateListeners[namespace]
if listerner == nil {
listener := txmgr.stateListeners[namespace]
if listener == nil {
continue
}
logger.Debugf("Invoking listener for state changes over namespace:%s", namespace)
Expand All @@ -92,7 +92,7 @@ func (txmgr *LockBasedTxMgr) invokeNamespaceListeners(batch *privacyenabledstate
for key, versionedValue := range updatesMap {
kvwrites = append(kvwrites, &kvrwset.KVWrite{Key: key, IsDelete: versionedValue.Value == nil, Value: versionedValue.Value})
}
if err := listerner.HandleStateUpdates(txmgr.ledgerid, kvwrites); err != nil {
if err := listener.HandleStateUpdates(txmgr.ledgerid, kvwrites); err != nil {
return err
}
}
Expand Down

0 comments on commit 9c54ba3

Please sign in to comment.