Skip to content

Commit

Permalink
replace add with store
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Nov 29, 2024
1 parent 4b55afd commit 3ae3676
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions store/v2/migration/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (m *Manager) Migrate(height uint64) error {
return err
}

m.migratedVersion.Add(height)
m.migratedVersion.Store(height)

return nil
}
Expand Down Expand Up @@ -198,7 +198,7 @@ func (m *Manager) Sync() error {
}
}

m.migratedVersion.Add(version)
m.migratedVersion.Store(version)

version += 1
}
Expand Down
1 change: 0 additions & 1 deletion store/v2/migration/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ func setupMigrationManager(t *testing.T) (*Manager, *commitment.CommitStore) {
}

func TestMigrateState(t *testing.T) {
fmt.Println("start")
m, orgCommitStore := setupMigrationManager(t)
// apply changeset
toVersion := uint64(100)
Expand Down

0 comments on commit 3ae3676

Please sign in to comment.