From cb866bc450ad1e425782fe3c76313e505458fba4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Thu, 28 Dec 2017 10:34:00 +0200 Subject: [PATCH] cmd, core: fix Permament -> Permanent typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit License: MIT Signed-off-by: Péter Szilágyi --- cmd/ipfs/daemon.go | 2 +- core/builder.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/ipfs/daemon.go b/cmd/ipfs/daemon.go index d76698db688..042a15132a2 100644 --- a/cmd/ipfs/daemon.go +++ b/cmd/ipfs/daemon.go @@ -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, diff --git a/core/builder.go b/core/builder.go index 4d8db614aeb..9a9d8066d9e 100644 --- a/core/builder.go +++ b/core/builder.go @@ -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 @@ -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 }