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

Commit 8a0dd91

Browse files
committed
refactor: fix review
1 parent 63ddbf5 commit 8a0dd91

File tree

3 files changed

+0
-15
lines changed

3 files changed

+0
-15
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
"dependencies": {
8181
"@nodeutils/defaults-deep": "^1.1.0",
8282
"async": "^2.6.1",
83-
"base32.js": "~0.1.0",
8483
"big.js": "^5.2.2",
8584
"binary-querystring": "~0.1.2",
8685
"bl": "^2.1.2",

src/core/components/pre-start.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ const waterfall = require('async/waterfall')
77
const Keychain = require('libp2p-keychain')
88
const defaultsDeep = require('@nodeutils/defaults-deep')
99
const NoKeychain = require('./no-keychain')
10-
11-
const IPNS = require('../ipns')
12-
const OfflineDatastore = require('../ipns/routing/offline-datastore')
13-
1410
/*
1511
* Load stuff from Repo into memory
1612
*/
@@ -99,13 +95,6 @@ module.exports = function preStart (self) {
9995

10096
cb()
10197
},
102-
// Setup offline routing for IPNS.
103-
(cb) => {
104-
const offlineDatastore = new OfflineDatastore(self._repo)
105-
106-
self._ipns = new IPNS(offlineDatastore, self)
107-
cb()
108-
},
10998
(cb) => self.pin._load(cb)
11099
], callback)
111100
}

src/core/ipns/routing/offline-datastore.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@
33
const { Key } = require('interface-datastore')
44
const { encodeBase32 } = require('./utils')
55

6-
<<<<<<< HEAD
76
const errcode = require('err-code')
87
const debug = require('debug')
98
const log = debug('jsipfs:ipns:offline-datastore')
109
log.error = debug('jsipfs:ipns:offline-datastore:error')
1110

12-
=======
13-
>>>>>>> refactor: ipns routing logic moved to instantiation
1411
// Offline datastore aims to mimic the same encoding as routing when storing records
1512
// to the local datastore
1613
class OfflineDatastore {

0 commit comments

Comments
 (0)