This repository was archived by the owner on Feb 12, 2024. It is now read-only.
File tree 3 files changed +0
-15
lines changed
3 files changed +0
-15
lines changed Original file line number Diff line number Diff line change 80
80
"dependencies" : {
81
81
"@nodeutils/defaults-deep" : " ^1.1.0" ,
82
82
"async" : " ^2.6.1" ,
83
- "base32.js" : " ~0.1.0" ,
84
83
"big.js" : " ^5.2.2" ,
85
84
"binary-querystring" : " ~0.1.2" ,
86
85
"bl" : " ^2.1.2" ,
Original file line number Diff line number Diff line change @@ -7,10 +7,6 @@ const waterfall = require('async/waterfall')
7
7
const Keychain = require ( 'libp2p-keychain' )
8
8
const defaultsDeep = require ( '@nodeutils/defaults-deep' )
9
9
const NoKeychain = require ( './no-keychain' )
10
-
11
- const IPNS = require ( '../ipns' )
12
- const OfflineDatastore = require ( '../ipns/routing/offline-datastore' )
13
-
14
10
/*
15
11
* Load stuff from Repo into memory
16
12
*/
@@ -99,13 +95,6 @@ module.exports = function preStart (self) {
99
95
100
96
cb ( )
101
97
} ,
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
- } ,
109
98
( cb ) => self . pin . _load ( cb )
110
99
] , callback )
111
100
}
Original file line number Diff line number Diff line change 3
3
const { Key } = require ( 'interface-datastore' )
4
4
const { encodeBase32 } = require ( './utils' )
5
5
6
- << < << << HEAD
7
6
const errcode = require ( 'err-code' )
8
7
const debug = require ( 'debug' )
9
8
const log = debug ( 'jsipfs:ipns:offline-datastore' )
10
9
log . error = debug ( 'jsipfs:ipns:offline-datastore:error' )
11
10
12
- === = ===
13
- >>> > >>> refactor : ipns routing logic moved to instantiation
14
11
// Offline datastore aims to mimic the same encoding as routing when storing records
15
12
// to the local datastore
16
13
class OfflineDatastore {
You can’t perform that action at this time.
0 commit comments