Skip to content

Commit

Permalink
Switch from using jdk Predicate to the one in Guava
Browse files Browse the repository at this point in the history
  • Loading branch information
larry-safran committed Dec 20, 2024
1 parent 21efc20 commit d15ac56
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion stub/src/main/java/io/grpc/stub/BlockingClientCall.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Preconditions;
import com.google.common.base.Predicate;
import io.grpc.ClientCall;
import io.grpc.ExperimentalApi;
import io.grpc.Metadata;
Expand All @@ -28,7 +29,6 @@
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import java.util.function.Predicate;
import java.util.logging.Level;
import java.util.logging.Logger;

Expand Down
8 changes: 4 additions & 4 deletions stub/src/main/java/io/grpc/stub/ClientCalls.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.MoreObjects;
import com.google.common.base.Preconditions;
import com.google.common.base.Predicate;
import com.google.common.base.Strings;
import com.google.common.util.concurrent.AbstractFuture;
import com.google.common.util.concurrent.ListenableFuture;
Expand All @@ -48,7 +49,6 @@
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.LockSupport;
import java.util.concurrent.locks.ReentrantLock;
import java.util.function.Predicate;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.annotation.Nonnull;
Expand Down Expand Up @@ -233,9 +233,9 @@ public static <ReqT, RespT> BlockingClientCall<ReqT, RespT> blockingV2ServerStre
BlockingClientCall<ReqT, RespT> call =
blockingBidiStreamingCall(channel, method, callOptions);

call.sendSingleRequest(req);
call.halfClose();
return call;
call.sendSingleRequest(req);
call.halfClose();
return call;
}

/**
Expand Down

0 comments on commit d15ac56

Please sign in to comment.