Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix 'Error: reference to subscribe is ambiguous'
subscribe(Consumer)와 subscribe(BiConsumer)가 있고, Log.i(Object), Log.i(String, Object)가 있어서 ambiguous 에러가 발생하는 것을 수정하였습니다.
Replace Observable with ConnectableObservable
현재 코드는 일반적으로 HTTP응답이 오기 전에 subscribe가 다 되기 때문에 정상동작으로 보이지만, HTTP응답이 온 후에 subscribe는 HTTP요청을 다시 보내게 됩니다. 원래 책에서 설명해주신 것처럼 ConnectableObservable로 수정했습니다.