Skip to content

Commit ceeb061

Browse files
committed
update diag commands and test
1 parent 6e4f300 commit ceeb061

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/main/java/io/ipfs/api/IPFS.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,8 +445,12 @@ public MerkleNode put(String inputFormat, byte[] object, String outputFormat) th
445445
}
446446

447447
public class Diag {
448-
public String net() throws IOException {
449-
return new String(retrieve("diag/net?stream-channels=true"));
448+
public String cmds() throws IOException {
449+
return new String(retrieve("diag/cmds?stream-channels=true"));
450+
}
451+
452+
public String sys() throws IOException {
453+
return new String(retrieve("diag/sys?stream-channels=true"));
450454
}
451455
}
452456

src/test/java/io/ipfs/api/APITest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,8 @@ public void diagTest() {
695695
Map setResult = ipfs.config.set("Datastore.Path", val);
696696
ipfs.config.replace(new NamedStreamable.ByteArrayWrapper(JSONParser.toString(config).getBytes()));
697697
// Object log = ipfs.log();
698-
String net = ipfs.diag.net();
698+
String sys = ipfs.diag.sys();
699+
String cmds = ipfs.diag.cmds();
699700
} catch (IOException e) {
700701
throw new RuntimeException(e);
701702
}

0 commit comments

Comments
 (0)