Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: use defaults-deep
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Oct 29, 2018
1 parent 235e194 commit ca7677d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/components/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const peerId = require('peer-id')
const waterfall = require('async/waterfall')
const parallel = require('async/parallel')
const promisify = require('promisify-es6')
const extend = require('deep-extend')
const defaultsDeep = require('@nodeutils/defaults-deep')
const defaultConfig = require('../runtime/config-nodejs.js')
const Keychain = require('libp2p-keychain')

Expand Down Expand Up @@ -52,7 +52,7 @@ module.exports = function init (self) {
opts.bits = Number(opts.bits) || 2048
opts.log = opts.log || function () {}

const config = extend(defaultConfig(), self._options.config)
const config = defaultsDeep(self._options.config, defaultConfig())
let privateKey

waterfall([
Expand Down

0 comments on commit ca7677d

Please sign in to comment.