@@ -334,7 +334,7 @@ public void onCompleted() {
334334 }
335335 });
336336 return CachedRouteLookupResponse .pendingResponse (
337- createPendingEntry (routeLookupRequestKey , response , backoffPolicy , routeLookupReason ));
337+ createPendingEntry (routeLookupRequestKey , response , backoffPolicy ));
338338 }
339339
340340 /**
@@ -391,10 +391,9 @@ void requestConnection() {
391391 private PendingCacheEntry createPendingEntry (
392392 RouteLookupRequestKey routeLookupRequestKey ,
393393 ListenableFuture <RouteLookupResponse > pendingCall ,
394- @ Nullable BackoffPolicy backoffPolicy ,
395- RouteLookupRequest .Reason routeLookupReason ) {
394+ @ Nullable BackoffPolicy backoffPolicy ) {
396395 PendingCacheEntry entry = new PendingCacheEntry (routeLookupRequestKey , pendingCall ,
397- backoffPolicy , routeLookupReason );
396+ backoffPolicy );
398397 // Add the entry to the map before adding the Listener, because the listener removes the
399398 // entry from the map
400399 pendingCallCache .put (routeLookupRequestKey , entry );
@@ -602,23 +601,20 @@ static final class PendingCacheEntry {
602601 private final RouteLookupRequestKey routeLookupRequestKey ;
603602 @ Nullable
604603 private final BackoffPolicy backoffPolicy ;
605- private final RouteLookupRequest .Reason routeLookupReason ;
606604
607605 PendingCacheEntry (
608606 RouteLookupRequestKey routeLookupRequestKey ,
609607 ListenableFuture <RouteLookupResponse > pendingCall ,
610- @ Nullable BackoffPolicy backoffPolicy , RouteLookupRequest . Reason routeLookupReason ) {
608+ @ Nullable BackoffPolicy backoffPolicy ) {
611609 this .routeLookupRequestKey = checkNotNull (routeLookupRequestKey , "request" );
612610 this .pendingCall = checkNotNull (pendingCall , "pendingCall" );
613611 this .backoffPolicy = backoffPolicy ;
614- this .routeLookupReason = routeLookupReason ;
615612 }
616613
617614 @ Override
618615 public String toString () {
619616 return MoreObjects .toStringHelper (this )
620617 .add ("routeLookupRequestKey" , routeLookupRequestKey )
621- .add ("routeLookupReason" , routeLookupReason )
622618 .toString ();
623619 }
624620 }
0 commit comments