diff options
author | Ferris Tseng <ferristseng@fastmail.fm> | 2018-01-23 20:24:44 -0500 |
---|---|---|
committer | Ferris Tseng <ferristseng@fastmail.fm> | 2018-01-23 20:24:44 -0500 |
commit | 1661d3e4a90ea2797b3b0485c9396b0b79473e0c (patch) | |
tree | 2fe85a30d67cfb38b2d8fa2da99838e7053206a7 /ipfs-cli | |
parent | a6c716e771ac041323fefcc1d04dc98490c38eff (diff) |
add /bitswap/reprovide
Diffstat (limited to 'ipfs-cli')
-rw-r--r-- | ipfs-cli/src/command/bitswap.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ipfs-cli/src/command/bitswap.rs b/ipfs-cli/src/command/bitswap.rs index 33f88ef..a63c21f 100644 --- a/ipfs-cli/src/command/bitswap.rs +++ b/ipfs-cli/src/command/bitswap.rs @@ -19,6 +19,9 @@ pub fn signature<'a, 'b>() -> App<'a, 'b> { (about: "Show the current ledger for a peer") (@arg PEER: +required "Peer to inspect") ) + (@subcommand reprovide => + (about: "Triggers a reprovide") + ) (@subcommand stat => (about: "Show some diagnostic information on the bitswap agent") ) @@ -46,6 +49,9 @@ pub fn handle(core: &mut Core, client: &IpfsClient, args: &ArgMatches) { println!(" exchanged : {}", ledger.exchanged); println!(); } + ("reprovide", _) => { + core.run(client.bitswap_reprovide()).expect(EXPECTED_API); + } ("stat", _) => { let stat = core.run(client.bitswap_stat()).expect(EXPECTED_API); |