This repository was archived by the owner on Feb 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +26
-4
lines changed
bundle-webpack/src/components Expand file tree Collapse file tree 5 files changed +26
-4
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,12 @@ The HTTP-API exposed by the js-ipfs daemon follows the [`http-api-spec`](https:/
200
200
const repo = < IPFS Repo instance or repo path>
201
201
202
202
// Create the IPFS node instance
203
- const node = new IPFS (repo)
203
+ const node = new IPFS ({
204
+ repo: repo,
205
+ EXPERIMENTAL : {
206
+ pubsub: false
207
+ }
208
+ })
204
209
205
210
// We need to init our repo, in this case the repo was empty
206
211
// We are picking 2048 bits for the RSA key that will be our PeerId
Original file line number Diff line number Diff line change @@ -12,7 +12,12 @@ const IPFS = require('../../src/core')
12
12
/*
13
13
* Create a new IPFS instance, using default repo (fs) on default path (~/.ipfs)
14
14
*/
15
- const node = new IPFS ( path . join ( os . tmpDir ( ) + '/' + new Date ( ) . toString ( ) ) )
15
+ const node = new IPFS ( {
16
+ repo : path . join ( os . tmpDir ( ) + '/' + new Date ( ) . toString ( ) ) ,
17
+ EXPERIMENTAL : {
18
+ pubsub : false
19
+ }
20
+ } )
16
21
17
22
const fileToAdd = {
18
23
path : 'hello.txt' ,
Original file line number Diff line number Diff line change @@ -7,7 +7,12 @@ var IPFS = require('../../../src/core') // replace this by line below
7
7
// for simplicity, we create a new repo everytime the node
8
8
// is created, because you can't init already existing repos
9
9
const repoPath = String ( Math . random ( ) )
10
- const node = new IPFS ( repoPath )
10
+ const node = new IPFS ( {
11
+ repo : repoPath ,
12
+ EXPERIMENTAL : {
13
+ pubsub : false
14
+ }
15
+ } )
11
16
const concat = require ( 'concat-stream' )
12
17
13
18
node . init ( { emptyRepo : true , bits : 2048 } , function ( err ) {
Original file line number Diff line number Diff line change @@ -29,7 +29,12 @@ class App extends React.Component {
29
29
// for simplicity, we create a new repo everytime the node
30
30
// is created, because you can't init already existing repos
31
31
const repoPath = String ( Math . random ( ) )
32
- node = new IPFS ( repoPath )
32
+ node = new IPFS ( {
33
+ repo : repoPath ,
34
+ EXPERIMENTAL : {
35
+ pubsub : false
36
+ }
37
+ } )
33
38
34
39
node . init ( { emptyRepo : true , bits : 2048 } , function ( err ) {
35
40
if ( err ) {
Original file line number Diff line number Diff line change
1
+ 'use strict'
2
+
1
3
exports . goOnline = require ( './go-online' )
2
4
exports . goOffline = require ( './go-offline' )
3
5
exports . isOnline = require ( './is-online' )
You can’t perform that action at this time.
0 commit comments