Skip to content

Commit

Permalink
defers unlock
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj committed Sep 18, 2023
1 parent ecb9f44 commit 9ce405e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow/connectors/eventhub/eventhub.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ func (c *EventHubConnector) sendEventBatch(events map[string][]*eventhub.Event,
numEventsPushed, tblName)
mapLock.Lock()
tableNameRowsMapping[tblName] += uint32(len(eventBatch))
mapLock.Unlock()
defer mapLock.Unlock()
}(tblName, eventBatch)
}

Expand Down

0 comments on commit 9ce405e

Please sign in to comment.