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 12c021d
Showing 1 changed file with 2 additions and 2 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

0 comments on commit 12c021d

Please sign in to comment.