@@ -44,7 +44,7 @@ public class SearchImageService {
|
|||||||
.followRedirects(true)
|
.followRedirects(true)
|
||||||
.followSslRedirects(true)
|
.followSslRedirects(true)
|
||||||
.retryOnConnectionFailure(true)
|
.retryOnConnectionFailure(true)
|
||||||
.connectionPool(new ConnectionPool(0, 1, TimeUnit.NANOSECONDS))
|
// .connectionPool(new ConnectionPool(0, 1, TimeUnit.NANOSECONDS))
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
this.googleHttpClient = new OkHttpClient.Builder()
|
this.googleHttpClient = new OkHttpClient.Builder()
|
||||||
@@ -56,7 +56,7 @@ public class SearchImageService {
|
|||||||
.followRedirects(true)
|
.followRedirects(true)
|
||||||
.followSslRedirects(true)
|
.followSslRedirects(true)
|
||||||
.retryOnConnectionFailure(true)
|
.retryOnConnectionFailure(true)
|
||||||
.connectionPool(new ConnectionPool(0, 1, TimeUnit.NANOSECONDS))
|
// .connectionPool(new ConnectionPool(0, 1, TimeUnit.NANOSECONDS))
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
this.objectMapper = new ObjectMapper();
|
this.objectMapper = new ObjectMapper();
|
||||||
|
|||||||
Reference in New Issue
Block a user