Skip to content

Commit 7d220ac

Browse files
committed
add profile call
1 parent 9116d57 commit 7d220ac

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -868,6 +868,10 @@ public String clearCmds() throws IOException {
868868
return retrieveString("diag/cmds/clear");
869869
}
870870

871+
public String profile() throws IOException {
872+
return retrieveString("diag/profile");
873+
}
874+
871875
public Map sys() throws IOException {
872876
return retrieveMap("diag/sys?stream-channels=true");
873877
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,7 @@ public void diagTest() throws IOException {
863863
List<Map> cmds = ipfs.diag.cmds(true);
864864
String res = ipfs.diag.clearCmds();
865865
List<Map> cmds2 = ipfs.diag.cmds(true);
866+
//res = ipfs.diag.profile();
866867
//String profile = "default";
867868
//ipfs.config.profileApply(profile, true);
868869
//Map entry = ipfs.config("Addresses.API", Optional.of("/ip4/127.0.0.1/tcp/5001"), Optional.empty());

0 commit comments

Comments
 (0)