This repository was archived by the owner on Dec 23, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
src/main/java/org/graylog/plugins/usagestatistics Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 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 >
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 >
Original file line number Diff line number Diff line change 1818import com .fasterxml .jackson .core .JsonProcessingException ;
1919import com .fasterxml .jackson .databind .ObjectMapper ;
2020import com .google .common .collect .ImmutableMap ;
21+ import okhttp3 .Call ;
2122import okhttp3 .Callback ;
2223import okhttp3 .Headers ;
2324import 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 }
You can’t perform that action at this time.
0 commit comments