Skip to content

Commit

Permalink
merge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
srene committed Sep 25, 2024
1 parent 1fd1aa7 commit 441a4e9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion block/pruning.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (m *Manager) PruningLoop(ctx context.Context) error {
case <-ctx.Done():
return ctx.Err()
case retainHeight := <-m.pruningC:
err := m.PruneBlocks(uint64(retainHeight))
_, err := m.PruneBlocks(uint64(retainHeight))
if err != nil {
m.logger.Error("pruning blocks", "retainHeight", retainHeight, "err", err)
}
Expand Down
2 changes: 0 additions & 2 deletions block/pruning_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,4 @@ func TestPruningRetainHeight(t *testing.T) {
}
}

err = manager.PruneBlocks(validRetainHeight)
require.NoError(err)
}

0 comments on commit 441a4e9

Please sign in to comment.