aboutsummaryrefslogtreecommitdiff
path: root/zsig
diff options
context:
space:
mode:
Diffstat (limited to 'zsig')
-rw-r--r--zsig/sum.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/zsig/sum.go b/zsig/sum.go
index 8e5b23f..7d706e8 100644
--- a/zsig/sum.go
+++ b/zsig/sum.go
@@ -7,7 +7,7 @@ import (
// Sum calculates SHA512/256
func Sum(r io.Reader) chan []byte {
- c := make(chan []byte)
+ c := make(chan []byte, 1)
go func() {
defer close(c)
buf := make([]byte, BlockSz)