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
cb866bc4
Unverified
Commit
cb866bc4
authored
Dec 28, 2017
by
Péter Szilágyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd, core: fix Permament -> Permanent typo
License: MIT Signed-off-by:
Péter Szilágyi
<
peterke@gmail.com
>
parent
72714b6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
cmd/ipfs/daemon.go
cmd/ipfs/daemon.go
+1
-1
core/builder.go
core/builder.go
+3
-3
No files found.
cmd/ipfs/daemon.go
View file @
cb866bc4
...
...
@@ -289,7 +289,7 @@ func daemonFunc(req cmds.Request, re cmds.ResponseEmitter) {
// Start assembling node config
ncfg
:=
&
core
.
BuildCfg
{
Repo
:
repo
,
Perma
m
ent
:
true
,
// It is temporary way to signify that node is perma
m
ent
Perma
n
ent
:
true
,
// It is temporary way to signify that node is perma
n
ent
Online
:
!
offline
,
ExtraOpts
:
map
[
string
]
bool
{
"pubsub"
:
pubsub
,
...
...
core/builder.go
View file @
cb866bc4
...
...
@@ -37,9 +37,9 @@ type BuildCfg struct {
// ExtraOpts is a map of extra options used to configure the ipfs nodes creation
ExtraOpts
map
[
string
]
bool
// If perma
m
ent then node should run more expensive processes
// If perma
n
ent then node should run more expensive processes
// that will improve performance in long run
Perma
m
ent
bool
Perma
n
ent
bool
// If NilRepo is set, a repo backed by a nil datastore will be constructed
NilRepo
bool
...
...
@@ -181,7 +181,7 @@ func setupNode(ctx context.Context, n *IpfsNode, cfg *BuildCfg) error {
uio
.
UseHAMTSharding
=
conf
.
Experimental
.
ShardingEnabled
opts
.
HasBloomFilterSize
=
conf
.
Datastore
.
BloomFilterSize
if
!
cfg
.
Perma
m
ent
{
if
!
cfg
.
Perma
n
ent
{
opts
.
HasBloomFilterSize
=
0
}
...
...
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