@@ -100,5 +96,4 @@ static SSLContext getDefaultSSLContext() {
throw new RuntimeException(e);
}
}
-
}
diff --git a/consensusj-jsonrpc/src/test/groovy/org/consensusj/jsonrpc/JsonRpcClientHttpUrlConnectionSpec.groovy b/consensusj-jsonrpc/src/test/groovy/org/consensusj/jsonrpc/JsonRpcClientHttpUrlConnectionSpec.groovy
index c749d2680..c7d75d184 100644
--- a/consensusj-jsonrpc/src/test/groovy/org/consensusj/jsonrpc/JsonRpcClientHttpUrlConnectionSpec.groovy
+++ b/consensusj-jsonrpc/src/test/groovy/org/consensusj/jsonrpc/JsonRpcClientHttpUrlConnectionSpec.groovy
@@ -12,11 +12,11 @@ class JsonRpcClientHttpUrlConnectionSpec extends Specification {
def "constructor works correctly" () {
when:
- def client = new JsonRpcClientHttpUrlConnection(JsonRpcMessage.Version.V2, "http://localhost:8080".toURI(), "user", "pass")
+ def client = new JsonRpcClientHttpUrlConnection(null, JsonRpcTransport.getDefaultSSLContext(), "http://localhost:8080".toURI(), "user", "pass")
then:
client.serverURI == "http://localhost:8080".toURI()
- client.getJsonRpcVersion() == JsonRpcMessage.Version.V2
+ //client.getJsonRpcVersion() == JsonRpcMessage.Version.V2
}
@Unroll
diff --git a/consensusj-rx-jsonrpc/src/main/java/org/consensusj/rx/jsonrpc/RxJsonRpcClient.java b/consensusj-rx-jsonrpc/src/main/java/org/consensusj/rx/jsonrpc/RxJsonRpcClient.java
index 4e8ded5f0..75410bb1b 100644
--- a/consensusj-rx-jsonrpc/src/main/java/org/consensusj/rx/jsonrpc/RxJsonRpcClient.java
+++ b/consensusj-rx-jsonrpc/src/main/java/org/consensusj/rx/jsonrpc/RxJsonRpcClient.java
@@ -3,7 +3,7 @@
import io.reactivex.rxjava3.core.Flowable;
import io.reactivex.rxjava3.core.Maybe;
import io.reactivex.rxjava3.core.Single;
-import org.consensusj.jsonrpc.AbstractRpcClient;
+import org.consensusj.jsonrpc.DefaultRpcClient;
import org.consensusj.jsonrpc.AsyncSupport;
import org.reactivestreams.Publisher;
import org.slf4j.Logger;
@@ -18,7 +18,7 @@
/**
* RxJava support for calling JSON-RPC clients. Extend/implement this interface to inherit {@code default} methods
- * {@link #call(ThrowingSupplier)}, {@link #defer(Supplier)}, and {@link #pollOnceAsPublisher(Supplier, AbstractRpcClient.TransientErrorFilter)}.
+ * {@link #call(ThrowingSupplier)}, {@link #defer(Supplier)}, and {@link #pollOnceAsPublisher(Supplier, DefaultRpcClient.TransientErrorFilter)}.
*/
public interface RxJsonRpcClient extends AsyncSupport {
Logger log = LoggerFactory.getLogger(RxJsonRpcClient.class);
@@ -59,7 +59,7 @@ static