Skip to content
This repository was archived by the owner on Dec 23, 2017. It is now read-only.

Commit e876ac7

Browse files
committed
Sync OkHttp version with Graylog server (3.0.1) and unbreak usage
1 parent 42e4179 commit e876ac7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
<dependency>
7474
<groupId>com.squareup.okhttp3</groupId>
7575
<artifactId>okhttp</artifactId>
76-
<version>3.0.0-RC1</version>
76+
<version>3.0.1</version>
7777
<scope>provided</scope>
7878
</dependency>
7979
<dependency>
@@ -119,7 +119,7 @@
119119
<dependency>
120120
<groupId>com.squareup.okhttp3</groupId>
121121
<artifactId>mockwebserver</artifactId>
122-
<version>3.0.0-RC1</version>
122+
<version>3.0.1</version>
123123
<scope>test</scope>
124124
</dependency>
125125
</dependencies>

src/main/java/org/graylog/plugins/usagestatistics/UsageStatsOptOutService.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import com.fasterxml.jackson.core.JsonProcessingException;
1919
import com.fasterxml.jackson.databind.ObjectMapper;
2020
import com.google.common.collect.ImmutableMap;
21+
import okhttp3.Call;
2122
import okhttp3.Callback;
2223
import okhttp3.Headers;
2324
import okhttp3.HttpUrl;
@@ -102,13 +103,13 @@ public void setOptOutState(final UsageStatsOptOutState optOutState) {
102103
// Run the opt-out request outside of the calling thread so it does not block.
103104
httpClient.newCall(request).enqueue(new Callback() {
104105
@Override
105-
public void onFailure(Request request, IOException e) {
106+
public void onFailure(Call call, IOException e) {
106107
LOG.error("Error while sending anonymous usage statistics opt-out");
107108
LOG.debug("Error details", e);
108109
}
109110

110111
@Override
111-
public void onResponse(Response response) throws IOException {
112+
public void onResponse(Call call, Response response) throws IOException {
112113
if (!response.isSuccessful()) {
113114
LOG.warn("Couldn't successfully send usage statistics opt-out: {}", response);
114115
}

0 commit comments

Comments
 (0)