diff --git a/blockstore/splitstore/splitstore.go b/blockstore/splitstore/splitstore.go index 914e2973f..5ccdf80a5 100644 --- a/blockstore/splitstore/splitstore.go +++ b/blockstore/splitstore/splitstore.go @@ -817,7 +817,7 @@ func (s *SplitStore) doCompact(curTs *types.TipSet) error { log.Infow("marking done", "took", time.Since(startMark), "marked", count) - // fetch refernces taken during marking and create the transaction protect filter + // fetch references taken during marking and create the transaction protect filter s.txnLk.Lock() txnRefs := s.txnRefs s.txnRefs = nil diff --git a/blockstore/splitstore/splitstore_test.go b/blockstore/splitstore/splitstore_test.go index 82a42846d..624daa525 100644 --- a/blockstore/splitstore/splitstore_test.go +++ b/blockstore/splitstore/splitstore_test.go @@ -118,7 +118,7 @@ func testSplitStore(t *testing.T, cfg *Config) { // count objects in the cold and hot stores countBlocks := func(bs blockstore.Blockstore) int { count := 0 - bs.(blockstore.BlockstoreIterator).ForEachKey(func(_ cid.Cid) error { + _ = bs.(blockstore.BlockstoreIterator).ForEachKey(func(_ cid.Cid) error { count++ return nil })