hi everybody
I want to call service function with request size about 10mb
so I got error "trying to send message larger than max (9840536 vs. 4194304)"
how to fix that ?
ohh I got it
in client:
c := client.DefaultClient
c.Init(grpc.MaxSendMsgSize(10 * 1024 * 1024))
in server:
service.Server().Init(grpc.MaxMsgSize(10 * 1024 * 1024))
Most helpful comment
ohh I got it
in client:
c := client.DefaultClient
c.Init(grpc.MaxSendMsgSize(10 * 1024 * 1024))
in server:
service.Server().Init(grpc.MaxMsgSize(10 * 1024 * 1024))