Skip to content

Commit

Permalink
txIndexer: revert buffered headCh
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanxyg committed Aug 30, 2024
1 parent a84f48d commit f490318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/txindexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func (indexer *txIndexer) loop(chain *BlockChain) {
done chan struct{} // Non-nil if background routine is active.
lastHead uint64 // The latest announced chain head (whose tx indexes are assumed created)

headCh = make(chan ChainHeadEvent, 10)
headCh = make(chan ChainHeadEvent)
sub = chain.SubscribeChainHeadEvent(headCh)
)
defer sub.Unsubscribe()
Expand Down

0 comments on commit f490318

Please sign in to comment.