Commit 86fd7673 authored by Michael de Hoog's avatar Michael de Hoog

Don't loop over receipts, because it's an unbuffered channel

parent 7fd8443b
......@@ -327,9 +327,6 @@ func (l *BatchSubmitter) drainState(receiptsCh chan txmgr.TxReceipt[txData], que
case r := <-receiptsCh:
l.handleReceipt(r)
case <-txDone:
for len(receiptsCh) > 0 {
l.handleReceipt(<-receiptsCh)
}
return
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment