Skip to content

Commit 5ea25e7

Browse files
committed
chore(fmt): go fmt
Signed-off-by: vibe <[email protected]>
1 parent 54c6370 commit 5ea25e7

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

main.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@ import (
1111
type CLI struct {
1212
Debug bool `short:"d" help:"Emit debug logs in addition to info logs."`
1313

14-
Network string `help:"Network on which to listen for gRPC connections." default:"tcp"`
15-
Address string `help:"Address at which to listen for gRPC connections." default:":9443"`
16-
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"`
17-
Insecure bool `help:"Run without mTLS credentials. If you supply this flag --tls-server-certs-dir will be ignored."`
18-
MaxRecvMessageSize int `help:"Maximum size of received messages in MB." default:"4"`
19-
14+
Network string `help:"Network on which to listen for gRPC connections." default:"tcp"`
15+
Address string `help:"Address at which to listen for gRPC connections." default:":9443"`
16+
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"`
17+
Insecure bool `help:"Run without mTLS credentials. If you supply this flag --tls-server-certs-dir will be ignored."`
18+
MaxRecvMessageSize int `help:"Maximum size of received messages in MB." default:"4"`
2019
}
2120

2221
// Run this Function.
@@ -30,7 +29,7 @@ func (c *CLI) Run() error {
3029
function.Listen(c.Network, c.Address),
3130
function.MTLSCertificates(c.TLSCertsDir),
3231
function.Insecure(c.Insecure),
33-
function.MaxRecvMessageSize(c.MaxRecvMessageSize * 1024 * 1024))
32+
function.MaxRecvMessageSize(c.MaxRecvMessageSize*1024*1024))
3433
}
3534

3635
func main() {

0 commit comments

Comments
 (0)