Skip to content

Commit

Permalink
Increase timeout duration
Browse files Browse the repository at this point in the history
  • Loading branch information
lneugebauer committed Sep 14, 2024
1 parent 0fb2234 commit a668999
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
import java.util.concurrent.TimeUnit
import javax.inject.Inject
import javax.inject.Singleton

Expand Down Expand Up @@ -74,6 +75,9 @@ class ApiProvider
.addInterceptor(httpLoggingInterceptor)
.addInterceptor(authInterceptor)
.addNetworkInterceptor(NetworkInterceptor())
.connectTimeout(30, TimeUnit.SECONDS)
.readTimeout(30, TimeUnit.SECONDS)
.writeTimeout(30, TimeUnit.SECONDS)
.build()

val retrofit =
Expand Down

0 comments on commit a668999

Please sign in to comment.