Configure timeout.
This commit is contained in:
		
							parent
							
								
									f33c6392d8
								
							
						
					
					
						commit
						c3bbaa15f3
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue