Skip to content

Commit

Permalink
fix(go): enable persist config otherwise changing the config is useless
Browse files Browse the repository at this point in the history
Signed-off-by: Sacha <sfroment42@gmail.com>
  • Loading branch information
sfroment committed May 22, 2019
1 parent cc09744 commit f1342cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions core/daemon/run.go
Expand Up @@ -62,10 +62,9 @@ func (d *Daemon) daemon(ctx context.Context, cfg *Config, accountName string) er
HOP: cfg.Hop,
PrivateNetwork: cfg.PrivateNetwork,
Identity: cfg.Identity,
Persist: false,
Persist: true,
OverridePersist: false,
PeerCache: cfg.PeerCache,

// DHTKVLogDatastore: cfg.DhtkvLogDatastore,
}),
),
Expand Down
1 change: 1 addition & 0 deletions core/network/config/config.go
Expand Up @@ -118,6 +118,7 @@ func (cfg *Config) Override(override *Config) error {
cfg.Metric = override.Metric
cfg.HOP = override.HOP
cfg.Identity = override.Identity
cfg.PrivateNetwork = override.PrivateNetwork
cfg.Persist = override.Persist
cfg.OverridePersist = override.OverridePersist
return nil
Expand Down

0 comments on commit f1342cd

Please sign in to comment.