fix channel init

This commit is contained in:
Guillaume Ballet 2023-10-24 13:19:58 +02:00
parent 2fdc0da8b8
commit e7ed73f0fe

View file

@ -401,7 +401,7 @@ func ExportSnapshotPreimages(chain *core.BlockChain, fn string, root common.Hash
Hash common.Hash Hash common.Hash
Size int Size int
} }
var hashCh chan hashAndPreimageSize hashCh := make(chan hashAndPreimageSize)
go func() { go func() {
defer close(hashCh) defer close(hashCh)