@cryptotaxi247 / kubo / commits / cb866bc45

cmd, core: fix Permament -> Permanent typo

License: MIT Signed-off-by: Péter Szilágyi <peterke@gmail.com>

Péter Szilágyi committed Dec 28, 2017 at 10:34 UTC cb866bc450ad1e425782fe3c76313e505458fba4
2 files changed +4 -4
cmd/ipfs/daemon.go
+1 -1
@@ -289,7 +289,7 @@ func daemonFunc(req cmds.Request, re cmds.ResponseEmitter) {
289 // Start assembling node config
290 ncfg := &core.BuildCfg{
291 Repo: repo,
292 - Permament: true, // It is temporary way to signify that node is permament
292 + Permanent: true, // It is temporary way to signify that node is permanent
293 Online: !offline,
294 ExtraOpts: map[string]bool{
295 "pubsub": pubsub,
core/builder.go
+3 -3
@@ -37,9 +37,9 @@ type BuildCfg struct {
37 // ExtraOpts is a map of extra options used to configure the ipfs nodes creation
38 ExtraOpts map[string]bool
39
40 - // If permament then node should run more expensive processes
40 + // If permanent then node should run more expensive processes
41 // that will improve performance in long run
42 - Permament bool
42 + Permanent bool
43
44 // If NilRepo is set, a repo backed by a nil datastore will be constructed
45 NilRepo bool
@@ -181,7 +181,7 @@ func setupNode(ctx context.Context, n *IpfsNode, cfg *BuildCfg) error {
181 uio.UseHAMTSharding = conf.Experimental.ShardingEnabled
182
183 opts.HasBloomFilterSize = conf.Datastore.BloomFilterSize
184 - if !cfg.Permament {
184 + if !cfg.Permanent {
185 opts.HasBloomFilterSize = 0
186 }
187