Skip to content

Commit

Permalink
OkHttpServerStream: fix compilation w/ grpc-web
Browse files Browse the repository at this point in the history
  • Loading branch information
ulfjack committed Nov 21, 2023
1 parent 6f8f6b1 commit 662177d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion okhttp/src/main/java/io/grpc/okhttp/OkHttpServerStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 662177d

Please sign in to comment.