@@ -107,9 +107,11 @@ internal class GrpcFeatureBinding(
107
107
webConfig : WebConfig
108
108
) : FeatureBinding.Factory {
109
109
110
- // This dispatcher is sized to the jetty thread pool size to make sure that
111
- // no requests that are currently scheduled on a jetty thread are ever blocked
112
- // from reading a streaming request
110
+ /* *
111
+ * This dispatcher is sized to the jetty thread pool size to make sure that
112
+ * no requests that are currently scheduled on a jetty thread are ever blocked
113
+ * from reading a streaming request.
114
+ */
113
115
private val grpcMessageSourceChannelDispatcher =
114
116
Dispatchers .IO .limitedParallelism(
115
117
parallelism = webConfig.jetty_max_thread_pool_size,
@@ -147,7 +149,7 @@ internal class GrpcFeatureBinding(
147
149
@Suppress(" UNCHECKED_CAST" ) // Assume it's a proto type.
148
150
ProtoAdapter .get(wireAnnotation.responseAdapter) as ProtoAdapter <Any >
149
151
}
150
- val isSuspending = action.function.isSuspend
152
+ val isSuspend = action.function.isSuspend
151
153
152
154
return if (streamingRequestType != null ) {
153
155
@Suppress(" UNCHECKED_CAST" ) // Assume it's a proto type.
@@ -156,7 +158,7 @@ internal class GrpcFeatureBinding(
156
158
responseAdapter = responseAdapter,
157
159
streamingRequest = true ,
158
160
streamingResponse = streamingResponse,
159
- isSuspend = isSuspending ,
161
+ isSuspend = isSuspend ,
160
162
grpcMessageSourceChannelContext = grpcMessageSourceChannelDispatcher,
161
163
)
162
164
} else {
@@ -166,7 +168,7 @@ internal class GrpcFeatureBinding(
166
168
responseAdapter = responseAdapter,
167
169
streamingRequest = false ,
168
170
streamingResponse = streamingResponse,
169
- isSuspend = isSuspending ,
171
+ isSuspend = isSuspend ,
170
172
grpcMessageSourceChannelContext = grpcMessageSourceChannelDispatcher,
171
173
)
172
174
}
0 commit comments