Merge pull request #1041 from markdroth/service_config_doc_fix

Update comment in service config struct.
This commit is contained in:
Mark D. Roth
2017-01-27 07:26:01 -08:00
committed by GitHub

View File

@ -486,17 +486,17 @@ type MethodConfig struct {
// then the other will be used. If neither is set, then the RPC has no deadline. // then the other will be used. If neither is set, then the RPC has no deadline.
Timeout time.Duration Timeout time.Duration
// MaxReqSize is the maximum allowed payload size for an individual request in a // MaxReqSize is the maximum allowed payload size for an individual request in a
// stream (client->server) in bytes. The size which is measured is the serialized, // stream (client->server) in bytes. The size which is measured is the serialized
// uncompressed payload in bytes. The actual value used is the minumum of the value // payload after per-message compression (but before stream compression) in bytes.
// specified here and the value set by the application via the gRPC client API. If // The actual value used is the minumum of the value specified here and the value set
// either one is not set, then the other will be used. If neither is set, then the // by the application via the gRPC client API. If either one is not set, then the other
// built-in default is used. // will be used. If neither is set, then the built-in default is used.
// TODO: support this. // TODO: support this.
MaxReqSize uint64 MaxReqSize uint32
// MaxRespSize is the maximum allowed payload size for an individual response in a // MaxRespSize is the maximum allowed payload size for an individual response in a
// stream (server->client) in bytes. // stream (server->client) in bytes.
// TODO: support this. // TODO: support this.
MaxRespSize uint64 MaxRespSize uint32
} }
// ServiceConfig is provided by the service provider and contains parameters for how // ServiceConfig is provided by the service provider and contains parameters for how