Switch to Reactor Californium SNAPSHOTs
This commit is contained in:
@@ -38,7 +38,7 @@ ext {
|
||||
kotlinVersion = "1.2.70"
|
||||
log4jVersion = "2.11.1"
|
||||
nettyVersion = "4.1.29.Final"
|
||||
reactorVersion = "Californium-RC1"
|
||||
reactorVersion = "Californium-BUILD-SNAPSHOT"
|
||||
rxjavaVersion = "1.3.8"
|
||||
rxjavaAdapterVersion = "1.2.1"
|
||||
rxjava2Version = "2.2.2"
|
||||
@@ -148,7 +148,7 @@ configure(allprojects) { project ->
|
||||
|
||||
repositories {
|
||||
maven { url "https://repo.spring.io/libs-release" }
|
||||
maven { url "https://repo.spring.io/libs-milestone" } // for Reactor
|
||||
maven { url "https://repo.spring.io/libs-snapshot" } // for Reactor
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -41,7 +41,7 @@ import org.springframework.util.Assert;
|
||||
*/
|
||||
public class ReactorClientHttpConnector implements ClientHttpConnector {
|
||||
|
||||
private final static Function<HttpClient, HttpClient> defaultInitializer = HttpClient::compress;
|
||||
private final static Function<HttpClient, HttpClient> defaultInitializer = client -> client.compress(true);
|
||||
|
||||
|
||||
private final HttpClient httpClient;
|
||||
@@ -82,7 +82,7 @@ public class ReactorClientHttpConnector implements ClientHttpConnector {
|
||||
LoopResources resources = resourceFactory.getLoopResources();
|
||||
Assert.notNull(provider, "No ConnectionProvider: is ReactorResourceFactory not initialized yet?");
|
||||
Assert.notNull(resources, "No LoopResources: is ReactorResourceFactory not initialized yet?");
|
||||
return HttpClient.create(provider).tcpConfiguration(tcpClient -> tcpClient.runOn(resources)).compress();
|
||||
return HttpClient.create(provider).tcpConfiguration(tcpClient -> tcpClient.runOn(resources));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user