Buffer another result channel.
This commit is contained in:
parent
807379661c
commit
44fbd30e22
1 changed files with 1 additions and 1 deletions
|
@ -1093,7 +1093,7 @@ func (s *Store) unspentOutputs() ([]Credit, error) {
|
|||
creditChans := make([]chan createdCredit, len(s.unspent))
|
||||
i := 0
|
||||
for op, key := range s.unspent {
|
||||
creditChans[i] = make(chan createdCredit)
|
||||
creditChans[i] = make(chan createdCredit, 1)
|
||||
go func(i int, key BlockTxKey, opIndex uint32) {
|
||||
r, err := s.lookupBlockTx(key)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue