[lbry] claimtrie: remove duplicated initialization of reportedBlockRepo

This commit is contained in:
Roy Lee 2021-07-11 22:51:28 -07:00
parent 328705f579
commit f218c04488

View file

@ -96,12 +96,6 @@ func New(record bool) (*ClaimTrie, error) {
return nil, fmt.Errorf("new trie repo: %w", err)
}
reportedBlockRepo, err := blockrepo.NewPebble(cfg.ReportedBlockRepoPebble.Path)
if err != nil {
return nil, fmt.Errorf("new reported block repo: %w", err)
}
cleanups = append(cleanups, reportedBlockRepo.Close)
trie := merkletrie.New(nodeManager, trieRepo)
cleanups = append(cleanups, trie.Close)