Skip to content

Commit

Permalink
docs: Wiki 에 필요한 이미지 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
sieunju committed Dec 3, 2023
1 parent a92860e commit 7388da7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Binary file added assets/okhttp_struct_log.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ class NetworkV2FragmentViewModel @Inject constructor(
a.plus(b).plus(c)
}
.doOnSuccess {
Timber.tag("HTTP_LOG")
.d("RESULT $it 걸린 시간 ${System.currentTimeMillis() - startTime}")
Timber.d("RESULT $it 걸린 시간 ${System.currentTimeMillis() - startTime}")
}
.subscribe()
.addTo(compositeDisposable)
Expand Down Expand Up @@ -192,21 +191,21 @@ class NetworkV2FragmentViewModel @Inject constructor(
}

private fun reqJwtTest1(): Single<Int> {
return apiService.fetchJwtTest()
return apiService.fetchJwtTest(3000)
.map { 1 }
.onErrorReturn { 11 }
.subscribeOn(Schedulers.io())
}

private fun reqJwtTest2(): Single<Int> {
return apiService.fetchJwtTest1()
return apiService.fetchJwtTest1(1000)
.map { 2 }
.onErrorReturn { 12 }
.subscribeOn(Schedulers.io())
}

private fun reqJwtTest3(): Single<Int> {
return apiService.fetchJwtTest2()
return apiService.fetchJwtTest2(2000)
.map { 3 }
.onErrorReturn { 13 }
.subscribeOn(Schedulers.io())
Expand Down

0 comments on commit 7388da7

Please sign in to comment.