fix lint
This commit is contained in:
parent
2c7a89a1db
commit
1f02428225
@ -817,7 +817,7 @@ func (s *SplitStore) doCompact(curTs *types.TipSet) error {
|
|||||||
|
|
||||||
log.Infow("marking done", "took", time.Since(startMark), "marked", count)
|
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()
|
s.txnLk.Lock()
|
||||||
txnRefs := s.txnRefs
|
txnRefs := s.txnRefs
|
||||||
s.txnRefs = nil
|
s.txnRefs = nil
|
||||||
|
@ -118,7 +118,7 @@ func testSplitStore(t *testing.T, cfg *Config) {
|
|||||||
// count objects in the cold and hot stores
|
// count objects in the cold and hot stores
|
||||||
countBlocks := func(bs blockstore.Blockstore) int {
|
countBlocks := func(bs blockstore.Blockstore) int {
|
||||||
count := 0
|
count := 0
|
||||||
bs.(blockstore.BlockstoreIterator).ForEachKey(func(_ cid.Cid) error {
|
_ = bs.(blockstore.BlockstoreIterator).ForEachKey(func(_ cid.Cid) error {
|
||||||
count++
|
count++
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user