Skip to content

Commit 97f258e

Browse files
align with function-template-go cli args
Signed-off-by: Steven Borrelli <[email protected]>
1 parent 7432d3e commit 97f258e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type CLI struct {
1515
Address string `help:"Address at which to listen for gRPC connections." default:":9443"`
1616
TLSCertsDir string `help:"Directory containing server certs (tls.key, tls.crt) and the CA used to verify client certificates (ca.crt)" env:"TLS_SERVER_CERTS_DIR"`
1717
Insecure bool `help:"Run without mTLS credentials. If you supply this flag --tls-server-certs-dir will be ignored."`
18-
MaxRecvMessageSize int `help:"gRPC maximum message size in bytes. Increase this when processing large Composites." default:"4194304"`
18+
MaxRecvMessageSize int `help:"Maximum size of received messages in MB." default:"4"`
1919
}
2020

2121
// Run this Function.
@@ -33,7 +33,7 @@ func (c *CLI) Run() error {
3333
function.Listen(c.Network, c.Address),
3434
function.MTLSCertificates(c.TLSCertsDir),
3535
function.Insecure(c.Insecure),
36-
function.MaxRecvMessageSize(c.MaxRecvMessageSize))
36+
function.MaxRecvMessageSize(c.MaxRecvMessageSize*1024*1024))
3737
}
3838

3939
func main() {

0 commit comments

Comments
 (0)