mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-08 01:01:34 +00:00
Close the file
This commit is contained in:
parent
34f72ddb3d
commit
7d2353f24d
1 changed files with 2 additions and 0 deletions
|
|
@ -124,6 +124,8 @@ func main() {
|
||||||
clilogger.Infoln(err)
|
clilogger.Infoln(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
defer fh.Close()
|
||||||
|
|
||||||
var chain types.Blocks
|
var chain types.Blocks
|
||||||
if err := rlp.Decode(fh, &chain); err != nil {
|
if err := rlp.Decode(fh, &chain); err != nil {
|
||||||
clilogger.Infoln(err)
|
clilogger.Infoln(err)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue