File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -387,8 +387,8 @@ public Map query(MultiAddress addr) throws IOException {
387387 return retrieveMap ("dht/query?arg=" + addr .toString ());
388388 }
389389
390- public Map findpeer (MultiAddress addr ) throws IOException {
391- return retrieveMap ("dht/findpeer?arg=" + addr .toString ());
390+ public Map findpeer (Multihash id ) throws IOException {
391+ return retrieveMap ("dht/findpeer?arg=" + id .toString ());
392392 }
393393
394394 public Map get (Multihash hash ) throws IOException {
Original file line number Diff line number Diff line change @@ -589,7 +589,7 @@ public void dhtTest() throws IOException {
589589 Map findprovs = ipfs .dht .findprovs (pointer );
590590 List <Peer > peers = ipfs .swarm .peers ();
591591 Map query = ipfs .dht .query (peers .get (0 ).address );
592- // Map find = ipfs.dht.findpeer(peers.get(0));
592+ Map find = ipfs .dht .findpeer (peers .get (0 ). id );
593593 }
594594
595595 @ Test
You can’t perform that action at this time.
0 commit comments