-
Notifications
You must be signed in to change notification settings - Fork 35
Adding metadata to shardcake's internal calls. #155
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
Changes from 2 commits
0754af8
5666b73
f01a7bc
f3f0d1b
f3cd4a0
85d0c61
aec52d8
4f79abf
4f1627b
15e94e1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,12 @@ | ||
| package com.devsisters.shardcake | ||
|
|
||
| import zio._ | ||
| import io.grpc.StatusException | ||
| import scalapb.zio_grpc.GTransform | ||
| import scalapb.zio_grpc.ZClientInterceptor | ||
|
|
||
| import java.util.concurrent.Executor | ||
| import scalapb.zio_grpc.RequestContext | ||
|
|
||
| /** | ||
| * The configuration for the gRPC client. | ||
|
|
@@ -17,10 +20,11 @@ case class GrpcConfig( | |
| maxInboundMessageSize: Int, | ||
| executor: Option[Executor], | ||
| shutdownTimeout: Duration, | ||
| interceptors: Seq[ZClientInterceptor] | ||
| interceptors: Seq[ZClientInterceptor], | ||
| serviceTransform: GTransform[RequestContext, StatusException, RequestContext, StatusException] | ||
|
||
| ) | ||
|
|
||
| object GrpcConfig { | ||
| val default: GrpcConfig = | ||
| GrpcConfig(maxInboundMessageSize = 32 * 1024 * 1024, None, 3.seconds, Seq.empty) | ||
| GrpcConfig(maxInboundMessageSize = 32 * 1024 * 1024, None, 3.seconds, Seq.empty, GTransform.identity) | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.