Skip to content

How to increase GRPC message size in Mortar? #58

Discussion options

You must be logged in to vote

Assuming you are using the service git template, you will need to replace Web service invocation run by the main.go file.

Instead of calling a generic service invocation code here: https://github.com/go-masonry/mortar-template/blob/master/main.go#L42

You will need to copy and change this file on your service and call it instead.

type webServiceDependencies struct {
	fx.In

	LifeCycle         fx.Lifecycle
	Logger            log.Logger
	WebServiceBuilder server.GRPCWebServiceBuilder
}

// Service should be invoked by FX, it will build the entire dependencies graph and add lifecycle hooks
func Service(deps webServiceDependencies) (server.WebService, error) {
	webService, err := deps.WebServi…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yingjingchen-pki
Comment options

Answer selected by yingjingchen-pki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants