Skip to content

Commit b680cf2

Browse files
committed
lanbery
1 parent 52526ff commit b680cf2

File tree

5 files changed

+13
-28
lines changed

5 files changed

+13
-28
lines changed

nbs-client4j.iml

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/main/java/com/nbs/ipfs/IPFSHelper.java

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import java.io.IOException;
1010
import java.util.Map;
11-
import java.util.Random;
1211
import java.util.concurrent.ConcurrentHashMap;
1312

1413
/**
@@ -31,6 +30,13 @@ public class IPFSHelper {
3130
public static String NICKNAME;
3231
private IPFS ipfs;
3332

33+
/**
34+
*
35+
*/
36+
private static final String NBSWORLD_CTRL_TOPIC = "$nbs.ctrl|broadcast$";
37+
private static final String NBS_IM_TOPIC_PREFFIX = "$nbs.im|";
38+
private static final String NBS_TOPIC_SEPRATOR = "$";
39+
3440
public IPFSHelper() {
3541
ipfs = new IPFS(ConfigHelper.getIpfsAddress());
3642
try {
@@ -100,4 +106,10 @@ public String getNickName() throws IOException {
100106
}
101107
return nick;
102108
}
109+
110+
111+
112+
public void getIMPeers(){
113+
114+
}
103115
}
3.76 KB
Loading
3.67 KB
Loading
3.69 KB
Loading

0 commit comments

Comments
 (0)