Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update codegen to add the serverMaxMetadataSize field to generated ServiceOptions #181

Merged
merged 3 commits into from
Feb 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion proto3-suite.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.0
name: proto3-suite
version: 0.4.2
version: 0.4.3
synopsis: A higher-level API to the proto3-wire library
description:
This library provides a higher-level API to <https://github.com/awakesecurity/proto3-wire the `proto3-wire` library>
Expand Down
2 changes: 2 additions & 0 deletions src/Proto3/Suite/DotProto/Generate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1488,6 +1488,7 @@ dotProtoServiceD pkgIdent ctxt serviceIdent service = do
, patVar "sslConfig"
, patVar "logger"
, patVar "serverMaxReceiveMessageLength"
, patVar "serverMaxMetadataSize"
]
]
(HsUnGuardedRhs (apply serverLoopE [ serverOptsE ]))
Expand Down Expand Up @@ -1532,6 +1533,7 @@ dotProtoServiceD pkgIdent ctxt serviceIdent service = do
, update "optSSLConfig" "sslConfig"
, update "optLogger" "logger"
, update "optMaxReceiveMessageLength" "serverMaxReceiveMessageLength"
, update "optMaxMetadataSize" "serverMaxMetadataSize"
]

let clientT = tyApp (HsTyCon (unqual_ serviceName)) [ clientRequestT, clientResultT ]
Expand Down