From c905b6f0c192c90d4587d843c7ecc276169fb4c1 Mon Sep 17 00:00:00 2001 From: vyzo Date: Fri, 3 Dec 2021 12:15:28 +0200 Subject: [PATCH] satisfy the spellchecker that masquarades as a linter --- blockstore/splitstore/splitstore.go | 2 +- blockstore/splitstore/splitstore_compact.go | 2 +- blockstore/splitstore/splitstore_test.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/blockstore/splitstore/splitstore.go b/blockstore/splitstore/splitstore.go index e0366512f..145e31d7a 100644 --- a/blockstore/splitstore/splitstore.go +++ b/blockstore/splitstore/splitstore.go @@ -50,7 +50,7 @@ var ( // set this to true if you want to track origin stack traces in the write log enableDebugLogWriteTraces = false - // upgradeBoundary is the boundary before and after an upgrade where we supress compaction + // upgradeBoundary is the boundary before and after an upgrade where we suppress compaction upgradeBoundary = build.Finality ) diff --git a/blockstore/splitstore/splitstore_compact.go b/blockstore/splitstore/splitstore_compact.go index 3a1fda202..04c2562fa 100644 --- a/blockstore/splitstore/splitstore_compact.go +++ b/blockstore/splitstore/splitstore_compact.go @@ -100,7 +100,7 @@ func (s *SplitStore) HeadChange(_, apply []*types.TipSet) error { } if s.isNearUpgrade(epoch) { - // we are near an upgrade epoch, supress compaction + // we are near an upgrade epoch, suppress compaction atomic.StoreInt32(&s.compacting, 0) return nil } diff --git a/blockstore/splitstore/splitstore_test.go b/blockstore/splitstore/splitstore_test.go index 6d8ff465f..f9111a979 100644 --- a/blockstore/splitstore/splitstore_test.go +++ b/blockstore/splitstore/splitstore_test.go @@ -221,7 +221,7 @@ func TestSplitStoreCompactionWithBadger(t *testing.T) { testSplitStore(t, &Config{MarkSetType: "badger"}) } -func TestSplitStoreSupressCompactionNearUpgrade(t *testing.T) { +func TestSplitStoreSuppressCompactionNearUpgrade(t *testing.T) { chain := &mockChain{t: t} // the myriads of stores @@ -264,7 +264,7 @@ func TestSplitStoreSupressCompactionNearUpgrade(t *testing.T) { } defer ss.Close() //nolint - // create an upgrade schedule that will supress compaction during the test + // create an upgrade schedule that will suppress compaction during the test upgradeBoundary = 0 upgrade := stmgr.Upgrade{ Height: 10,