This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from ipfs/feature/swarm
Integrate libp2p - Get swarm listener and dialer as part of the mix
- Loading branch information
Showing
40 changed files
with
481 additions
and
386 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,26 @@ | ||
'use strict' | ||
|
||
const Command = require('ronin').Command | ||
const IPFS = require('../../../ipfs-core') | ||
const debug = require('debug') | ||
const log = debug('cli:bootstrap') | ||
log.error = debug('cli:bootstrap:error') | ||
const utils = require('../../utils') | ||
|
||
module.exports = Command.extend({ | ||
desc: 'Removes peers from the bootstrap list', | ||
|
||
options: {}, | ||
|
||
run: (multiaddr) => { | ||
var node = new IPFS() | ||
node.bootstrap.rm(multiaddr, (err, list) => { | ||
if (err) { return log.error(err) } | ||
utils.getIPFS((err, ipfs) => { | ||
if (err) { | ||
throw err | ||
} | ||
ipfs.bootstrap.rm(multiaddr, (err, list) => { | ||
if (err) { | ||
return log.error(err) | ||
} | ||
}) | ||
}) | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
var Command = require('ronin').Command | ||
const Command = require('ronin').Command | ||
|
||
module.exports = Command.extend({ | ||
desc: '', | ||
|
||
run: function (name) {} | ||
run: function () {} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.