Skip to content

Commit 182e951

Browse files
committed
Open CoroutineContextServerInterceptor.COROUTINE_CONTEXT_KEY
1 parent 43dce9d commit 182e951

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

stub/src/main/java/io/grpc/kotlin/CoroutineContextServerInterceptor.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ import io.grpc.Context as GrpcContext
1616
*/
1717
abstract class CoroutineContextServerInterceptor : ServerInterceptor {
1818
companion object {
19-
// This is deliberately kept visibility-restricted; it's intentional that the only way to affect
20-
// the CoroutineContext is to extend CoroutineContextServerInterceptor.
21-
internal val COROUTINE_CONTEXT_KEY : GrpcContext.Key<CoroutineContext> =
19+
val COROUTINE_CONTEXT_KEY : GrpcContext.Key<CoroutineContext> =
2220
GrpcContext.keyWithDefault("grpc-kotlin-coroutine-context", EmptyCoroutineContext)
2321

2422
private fun GrpcContext.extendCoroutineContext(coroutineContext: CoroutineContext): GrpcContext {

0 commit comments

Comments
 (0)