Update main.go

This commit is contained in:
Yan authored and GitHub committed 2019-11-15 00:10:26 +03:00
1 parent c0775acb8a
commit 9cc82cb33e
1 file changed
+6 -1
+6 -1
View File
@@ -57,7 +57,12 @@ func onRemoteConfigReceive(remoteConfig, oldRemoteConfig *conf.RemoteConfig) {
func onLocalConfigLoad(cfg *conf.Configuration) {
handlers := helper.GetAllHandlers()
service := backend.GetDefaultService(cfg.ModuleName, handlers...)
backend.StartBackendGrpcServer(cfg.GrpcInnerAddress, service)
backend.StartBackendGrpcServer(
cfg.GrpcInnerAddress, service,
grpc.MaxRecvMsgSize(1024*1024*4),
grpc.MaxSendMsgSize(1024*1024*4),
)
}
func routesData(localConfig interface{}) bootstrap.ModuleInfo {