Skip to content

Commit

Permalink
Fix references to deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Jacobs committed Jan 28, 2015
1 parent 7723ff2 commit 4bc067c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ public Observable<ResponseType> toObservable() {
public Observable<ResponseType> toObservable(Scheduler observeOn) {

/* try from cache first */
if (getProperties().requestCachingEnabled().get()) {
if (getProperties().requestCacheEnabled().get()) {
Observable<ResponseType> fromCache = requestCache.get(getCacheKey());
if (fromCache != null) {
metrics.markResponseFromCache();
Expand All @@ -389,7 +389,7 @@ public Observable<ResponseType> toObservable(Scheduler observeOn) {
RequestCollapser<BatchReturnType, ResponseType, RequestArgumentType> requestCollapser = collapserFactory.getRequestCollapser(collapserInstanceWrapper);
Observable<ResponseType> response = requestCollapser.submitRequest(getRequestArgument());
metrics.markRequestBatched();
if (getProperties().requestCachingEnabled().get()) {
if (getProperties().requestCacheEnabled().get()) {
/*
* A race can occur here with multiple threads queuing but only one will be cached.
* This means we can have some duplication of requests in a thread-race but we're okay
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ public Observable<ResponseType> toObservable() {
public Observable<ResponseType> toObservable(Scheduler observeOn) {

/* try from cache first */
if (getProperties().requestCachingEnabled().get()) {
if (getProperties().requestCacheEnabled().get()) {
Observable<ResponseType> fromCache = requestCache.get(getCacheKey());
if (fromCache != null) {
/* mark that we received this response from cache */
Expand All @@ -384,7 +384,7 @@ public Observable<ResponseType> toObservable(Scheduler observeOn) {

RequestCollapser<BatchReturnType, ResponseType, RequestArgumentType> requestCollapser = collapserFactory.getRequestCollapser(collapserInstanceWrapper);
Observable<ResponseType> response = requestCollapser.submitRequest(getRequestArgument());
if (getProperties().requestCachingEnabled().get()) {
if (getProperties().requestCacheEnabled().get()) {
/*
* A race can occur here with multiple threads queuing but only one will be cached.
* This means we can have some duplication of requests in a thread-race but we're okay
Expand Down

0 comments on commit 4bc067c

Please sign in to comment.