Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
46f1afbe
Commit
46f1afbe
authored
Nov 04, 2014
by
Brian Tiger Chow
Committed by
Juan Batiz-Benet
Nov 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(init) re-order
parent
a1e738e2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
cmd/ipfs2/init.go
cmd/ipfs2/init.go
+4
-3
No files found.
cmd/ipfs2/init.go
View file @
46f1afbe
...
...
@@ -77,15 +77,16 @@ func doInit(configRoot string, dspath string, force bool, nBitsForKeypair int) e
}
cfg
:=
new
(
config
.
Config
)
cfg
.
Datastore
=
config
.
Datastore
{}
if
len
(
dspath
)
==
0
{
dspath
,
err
=
config
.
DataStorePath
(
""
)
if
err
!=
nil
{
return
err
}
}
cfg
.
Datastore
.
Path
=
dspath
cfg
.
Datastore
.
Type
=
"leveldb"
cfg
.
Datastore
=
config
.
Datastore
{
Path
:
dspath
,
Type
:
"leveldb"
,
}
// Construct the data store if missing
if
err
:=
os
.
MkdirAll
(
dspath
,
os
.
ModePerm
);
err
!=
nil
{
...
...
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