Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/go/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
GRPC Golang拨号选项如何使用WithMaxMsgSize功能_Go_Grpc_Grpc Go - Fatal编程技术网

GRPC Golang拨号选项如何使用WithMaxMsgSize功能

GRPC Golang拨号选项如何使用WithMaxMsgSize功能,go,grpc,grpc-go,Go,Grpc,Grpc Go,我试图更改golang拨号选项更改其最大消息大小,但找不到有关如何使用MaxMsgSize函数更改接收/发送文件大小的任何示例找到了该方法,您所要做的只是在初始化服务器时在结构内部实现它 s := grpc.NewServer(grpc.MaxSendMsgSize(1024*1024*50), grpc.MaxRecvMsgSize(1024*1024*50))

我试图更改golang拨号选项更改其最大消息大小,但找不到有关如何使用MaxMsgSize函数更改接收/发送文件大小的任何示例找到了该方法,您所要做的只是在初始化服务器时在结构内部实现它

s := grpc.NewServer(grpc.MaxSendMsgSize(1024*1024*50), grpc.MaxRecvMsgSize(1024*1024*50))