Skip to content

Commit

Permalink
chore: remove old logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ablax committed Aug 28, 2024
1 parent 4062ea1 commit 361d116
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ protected StrictProtocolBinding(String protocolId/*, T protocol*/) {

public Stream dialPeer(/*PeerId peer*/) {
Object peer1 = getPeer();
System.out.println("Peer: " + peer1);
JSPromise<Object> dial = dial(peer1, protocolId);
final var lock = new Object();
AtomicReference<Stream> stream = new AtomicReference<>();
Expand All @@ -35,15 +34,10 @@ public Stream dialPeer(/*PeerId peer*/) {
throw new RuntimeException(e);
}
}
Stream atomicStream = stream.get();

System.out.println("Stream: " + toJson(atomicStream));
return atomicStream;
return stream.get();
}

@JSBody(params = {"object"}, script = "return JSON.stringify(object);")
private static native String toJson(Object object);

@JSBody(params = {"peerId", "protocolId"}, script = "return (async () => ItPbStream.pbStream(await libp.dialProtocol(peerId, protocolId)))()")
private static native JSPromise<Object> dial(Object peerId, String protocolId);

Expand Down

0 comments on commit 361d116

Please sign in to comment.