Skip to content

Commit

Permalink
fix: tx invalidation was wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
Stumble committed Mar 25, 2020
1 parent 967796d commit 614d8e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/clients/mysql/txdbexecuter.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ func (m *manager) getTxDBExecuter(tx *sql.Tx) *txDBExecuter {

func (s *txDBExecuter) commit() {
var wg sync.WaitGroup
for _, inval := range s.invalidateFunc {
for _, v := range s.invalidateFunc {
wg.Add(1)
go func() {
go func(inval func()) {
defer wg.Done()
inval()
}()
}(v)
}
wg.Wait()
}
Expand Down

0 comments on commit 614d8e8

Please sign in to comment.