Skip to content

Commit 9bb2be2

Browse files
committed
Upgrade retrofit 2.5.0
1 parent ebc928b commit 9bb2be2

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

extras/retrofit2/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<description>The Async Http Client Retrofit2 Extras.</description>
1313

1414
<properties>
15-
<retrofit2.version>2.4.0</retrofit2.version>
15+
<retrofit2.version>2.5.0</retrofit2.version>
1616
<lombok.version>1.16.20</lombok.version>
1717
</properties>
1818

extras/retrofit2/src/main/java/org/asynchttpclient/extras/retrofit/AsyncHttpClientCall.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import lombok.extern.slf4j.Slf4j;
1818
import okhttp3.*;
1919
import okio.Buffer;
20+
import okio.Timeout;
2021
import org.asynchttpclient.AsyncCompletionHandler;
2122
import org.asynchttpclient.AsyncHttpClient;
2223
import org.asynchttpclient.RequestBuilder;
@@ -167,6 +168,11 @@ public boolean isCanceled() {
167168
return future != null && future.isCancelled();
168169
}
169170

171+
@Override
172+
public Timeout timeout() {
173+
return new Timeout().timeout(executeTimeoutMillis, TimeUnit.MILLISECONDS);
174+
}
175+
170176
@Override
171177
public Call clone() {
172178
return toBuilder().build();

0 commit comments

Comments
 (0)