Skip to content

Commit

Permalink
fix scope
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Oct 31, 2024
1 parent 673c802 commit 69401fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions store/cachemulti/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (cms Store) writeStoresParallel(runnerCount int) error {
wg.Add(1)
sem <- struct{}{}

go func() {
go func(storeKey types.StoreKey, store types.CacheWrap) {
defer func() {
wg.Done()
<-sem // Release the slot
Expand All @@ -162,7 +162,7 @@ func (cms Store) writeStoresParallel(runnerCount int) error {
}
}()
store.Write()
}()
}(storeKey, store)
}

go func() {
Expand Down

0 comments on commit 69401fc

Please sign in to comment.