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

Commit

Permalink
refactor: fix review
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Dec 1, 2018
1 parent 63ddbf5 commit 8a0dd91
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
"dependencies": {
"@nodeutils/defaults-deep": "^1.1.0",
"async": "^2.6.1",
"base32.js": "~0.1.0",
"big.js": "^5.2.2",
"binary-querystring": "~0.1.2",
"bl": "^2.1.2",
Expand Down
11 changes: 0 additions & 11 deletions src/core/components/pre-start.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ const waterfall = require('async/waterfall')
const Keychain = require('libp2p-keychain')
const defaultsDeep = require('@nodeutils/defaults-deep')
const NoKeychain = require('./no-keychain')

const IPNS = require('../ipns')
const OfflineDatastore = require('../ipns/routing/offline-datastore')

/*
* Load stuff from Repo into memory
*/
Expand Down Expand Up @@ -99,13 +95,6 @@ module.exports = function preStart (self) {

cb()
},
// Setup offline routing for IPNS.
(cb) => {
const offlineDatastore = new OfflineDatastore(self._repo)

self._ipns = new IPNS(offlineDatastore, self)
cb()
},
(cb) => self.pin._load(cb)
], callback)
}
Expand Down
3 changes: 0 additions & 3 deletions src/core/ipns/routing/offline-datastore.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@
const { Key } = require('interface-datastore')
const { encodeBase32 } = require('./utils')

<<<<<<< HEAD
const errcode = require('err-code')
const debug = require('debug')
const log = debug('jsipfs:ipns:offline-datastore')
log.error = debug('jsipfs:ipns:offline-datastore:error')

=======
>>>>>>> refactor: ipns routing logic moved to instantiation
// Offline datastore aims to mimic the same encoding as routing when storing records
// to the local datastore
class OfflineDatastore {
Expand Down

0 comments on commit 8a0dd91

Please sign in to comment.