Skip to content

Commit 3a31ac2

Browse files
ixmatusfumieval
authored andcommitted
Update codegen to add the serverMaxMetadataSize field to generated ServiceOptions (awakesecurity#181)
* Update codegen to add the `serverMaxMetadataSize` field * Fix typo * `0.4.2` -> `0.4.3` since we're changing codegen output
1 parent 841b257 commit 3a31ac2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

proto3-suite.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 2.0
22
name: proto3-suite
3-
version: 0.4.2
3+
version: 0.4.3
44
synopsis: A higher-level API to the proto3-wire library
55
description:
66
This library provides a higher-level API to <https://github.com/awakesecurity/proto3-wire the `proto3-wire` library>

src/Proto3/Suite/DotProto/Generate.hs

+2
Original file line numberDiff line numberDiff line change
@@ -1488,6 +1488,7 @@ dotProtoServiceD pkgIdent ctxt serviceIdent service = do
14881488
, patVar "sslConfig"
14891489
, patVar "logger"
14901490
, patVar "serverMaxReceiveMessageLength"
1491+
, patVar "serverMaxMetadataSize"
14911492
]
14921493
]
14931494
(HsUnGuardedRhs (apply serverLoopE [ serverOptsE ]))
@@ -1532,6 +1533,7 @@ dotProtoServiceD pkgIdent ctxt serviceIdent service = do
15321533
, update "optSSLConfig" "sslConfig"
15331534
, update "optLogger" "logger"
15341535
, update "optMaxReceiveMessageLength" "serverMaxReceiveMessageLength"
1536+
, update "optMaxMetadataSize" "serverMaxMetadataSize"
15351537
]
15361538

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

0 commit comments

Comments
 (0)