From 44fbd30e2206b9dd4cc9ee30f04ba7cb0213accd Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Mon, 5 Jan 2015 20:02:51 -0500 Subject: [PATCH] Buffer another result channel. --- txstore/tx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/txstore/tx.go b/txstore/tx.go index 15757c4..db27471 100644 --- a/txstore/tx.go +++ b/txstore/tx.go @@ -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 {