Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
355a42f3
Commit
355a42f3
authored
Jan 29, 2017
by
Shintaro Kaneko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/geth, cmd/swarm: Fix to close file handler appropriately
parent
c46c41ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
chaincmd.go
cmd/geth/chaincmd.go
+1
-0
hash.go
cmd/swarm/hash.go
+1
-0
No files found.
cmd/geth/chaincmd.go
View file @
355a42f3
...
...
@@ -123,6 +123,7 @@ func initGenesis(ctx *cli.Context) error {
if
err
!=
nil
{
utils
.
Fatalf
(
"failed to read genesis file: %v"
,
err
)
}
defer
genesisFile
.
Close
()
block
,
err
:=
core
.
WriteGenesisBlock
(
chaindb
,
genesisFile
)
if
err
!=
nil
{
...
...
cmd/swarm/hash.go
View file @
355a42f3
...
...
@@ -36,6 +36,7 @@ func hash(ctx *cli.Context) {
fmt
.
Println
(
"Error opening file "
+
args
[
1
])
os
.
Exit
(
1
)
}
defer
f
.
Close
()
stat
,
_
:=
f
.
Stat
()
chunker
:=
storage
.
NewTreeChunker
(
storage
.
NewChunkerParams
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment