From 12c021d60f39d54563d490f12557441dbaa8cf07 Mon Sep 17 00:00:00 2001 From: marbar3778 Date: Fri, 29 Nov 2024 12:28:08 +0100 Subject: [PATCH] replace add with store --- store/v2/migration/manager.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/store/v2/migration/manager.go b/store/v2/migration/manager.go index e32036aa95dd..db88b195712b 100644 --- a/store/v2/migration/manager.go +++ b/store/v2/migration/manager.go @@ -111,7 +111,7 @@ func (m *Manager) Migrate(height uint64) error { return err } - m.migratedVersion.Add(height) + m.migratedVersion.Store(height) return nil } @@ -198,7 +198,7 @@ func (m *Manager) Sync() error { } } - m.migratedVersion.Add(version) + m.migratedVersion.Store(version) version += 1 }