mirror of
https://github.com/LBRYFoundation/lbcd.git
synced 2025-08-23 17:47:24 +00:00
[lbry] claimtrie: remove duplicated initialization of reportedBlockRepo
This commit is contained in:
parent
328705f579
commit
f218c04488
1 changed files with 0 additions and 6 deletions
|
@ -96,12 +96,6 @@ func New(record bool) (*ClaimTrie, error) {
|
||||||
return nil, fmt.Errorf("new trie repo: %w", err)
|
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)
|
trie := merkletrie.New(nodeManager, trieRepo)
|
||||||
cleanups = append(cleanups, trie.Close)
|
cleanups = append(cleanups, trie.Close)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue