Configure timeout.

This commit is contained in:
Thomas Andres Gomez 2023-03-29 09:43:35 +02:00
parent f33c6392d8
commit c3bbaa15f3

View file

@ -24,6 +24,9 @@ class BibLibClient @Inject constructor(
.addInterceptor(bearerInterceptor)
.addInterceptor(httpInterceptor)
.callTimeout(1, TimeUnit.MINUTES)
.connectTimeout(1, TimeUnit.MINUTES)
.readTimeout(1, TimeUnit.MINUTES)
.writeTimeout(1, TimeUnit.MINUTES)
.build()
)
.baseUrl(BASE_URL)