Skip to content

Commit

Permalink
Merge pull request #4526 from karalabe/fix-permament
Browse files Browse the repository at this point in the history
cmd, core: fix Permament -> Permanent typo
  • Loading branch information
whyrusleeping authored Dec 31, 2017
2 parents 952a143 + cb866bc commit 64ae934
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/ipfs/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ func daemonFunc(req cmds.Request, re cmds.ResponseEmitter) {
// Start assembling node config
ncfg := &core.BuildCfg{
Repo: repo,
Permament: true, // It is temporary way to signify that node is permament
Permanent: true, // It is temporary way to signify that node is permanent
Online: !offline,
ExtraOpts: map[string]bool{
"pubsub": pubsub,
Expand Down
6 changes: 3 additions & 3 deletions core/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 permament then node should run more expensive processes
// If permanent then node should run more expensive processes
// that will improve performance in long run
Permament bool
Permanent bool

// If NilRepo is set, a repo backed by a nil datastore will be constructed
NilRepo bool
Expand Down Expand Up @@ -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.Permament {
if !cfg.Permanent {
opts.HasBloomFilterSize = 0
}

Expand Down

0 comments on commit 64ae934

Please sign in to comment.