Skip to content

Commit

Permalink
Problem: estimates map can't write in parallel (#15)
Browse files Browse the repository at this point in the history
Solution:
- change to slice
  • Loading branch information
yihuang committed Sep 12, 2024
1 parent 92839e7 commit 1cd8997
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mvmemory.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func NewMVMemory(

func NewMVMemoryWithEstimates(
block_size int, stores map[storetypes.StoreKey]int,
storage MultiStore, scheduler *Scheduler, estimates map[int]MultiLocations,
storage MultiStore, scheduler *Scheduler, estimates []MultiLocations,
) *MVMemory {
data := make([]MVStore, len(stores))
for key, i := range stores {
Expand Down
2 changes: 1 addition & 1 deletion stm.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func ExecuteBlockWithEstimates(
stores map[storetypes.StoreKey]int,
storage MultiStore,
executors int,
estimates map[int]MultiLocations, // txn -> multi-locations
estimates []MultiLocations, // txn -> multi-locations
txExecutor TxExecutor,
) error {
if executors < 0 {
Expand Down

0 comments on commit 1cd8997

Please sign in to comment.