From 662177db25eca738bf10b0c2e34f181364f826eb Mon Sep 17 00:00:00 2001 From: Ulf Adams Date: Tue, 21 Nov 2023 22:48:39 +0100 Subject: [PATCH] OkHttpServerStream: fix compilation w/ grpc-web --- okhttp/src/main/java/io/grpc/okhttp/OkHttpServerStream.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/okhttp/src/main/java/io/grpc/okhttp/OkHttpServerStream.java b/okhttp/src/main/java/io/grpc/okhttp/OkHttpServerStream.java index 85ed916095b..a1f9d58be1b 100644 --- a/okhttp/src/main/java/io/grpc/okhttp/OkHttpServerStream.java +++ b/okhttp/src/main/java/io/grpc/okhttp/OkHttpServerStream.java @@ -21,6 +21,7 @@ import io.grpc.Metadata; import io.grpc.Status; import io.grpc.internal.AbstractServerStream; +import io.grpc.internal.Protocol; import io.grpc.internal.StatsTraceContext; import io.grpc.internal.TransportTracer; import io.grpc.internal.WritableBuffer; @@ -164,7 +165,7 @@ public TransportState( int initialWindowSize, TransportTracer transportTracer, String methodName) { - super(maxMessageSize, statsTraceCtx, transportTracer); + super(maxMessageSize, statsTraceCtx, transportTracer, Protocol.GRPC); this.transport = Preconditions.checkNotNull(transport, "transport"); this.streamId = streamId; this.lock = Preconditions.checkNotNull(lock, "lock");