summaryrefslogtreecommitdiffstats
path: root/ipfs-cli/src/command/bitswap.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ipfs-cli/src/command/bitswap.rs')
-rw-r--r--ipfs-cli/src/command/bitswap.rs6
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);