Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api, core, services: make ProtoReflectionService interceptor compatible #6967

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion alts/src/test/java/io/grpc/alts/AuthorizationUtilTest.java
Expand Up @@ -22,7 +22,6 @@
import io.grpc.Attributes;
import io.grpc.Metadata;
import io.grpc.MethodDescriptor;
import io.grpc.Server;
import io.grpc.ServerCall;
import io.grpc.Status;
import io.grpc.alts.internal.AltsAuthContext;
Expand Down
Expand Up @@ -77,8 +77,7 @@ public final class ProtoReflectionService extends ServerReflectionGrpc.ServerRef
private ProtoReflectionService() {}

/**
* Creates a instance of {@link ProtoReflectionService}. Intended usage is one instance per
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doh. I missed this before. Of course it was already limited to one server. Sorry for asking for the WeakHashMap, although it is nicer that way. I guess previously we'd have just returned wrong data? Yeah, using the WeakHashMap is much nicer for users.

* {@link Server}.
* Creates a instance of {@link ProtoReflectionService}.
*/
public static ServerServiceDefinition newInstance() {
AtomicReference<Server> serverCaptor = new AtomicReference<>();
Expand Down
1 change: 0 additions & 1 deletion stub/src/test/java/io/grpc/stub/ServerCallsTest.java
Expand Up @@ -28,7 +28,6 @@
import io.grpc.ManagedChannel;
import io.grpc.Metadata;
import io.grpc.MethodDescriptor;
import io.grpc.Server;
import io.grpc.ServerCall;
import io.grpc.ServerCallHandler;
import io.grpc.ServerServiceDefinition;
Expand Down