From 5ea25e77f5ca4989245665052b8238351673b803 Mon Sep 17 00:00:00 2001 From: vibe Date: Tue, 19 Nov 2024 23:32:26 -0800 Subject: [PATCH] chore(fmt): go fmt Signed-off-by: vibe --- main.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/main.go b/main.go index 8d62d44..31a3acb 100644 --- a/main.go +++ b/main.go @@ -11,12 +11,11 @@ import ( type CLI struct { Debug bool `short:"d" help:"Emit debug logs in addition to info logs."` - Network string `help:"Network on which to listen for gRPC connections." default:"tcp"` - Address string `help:"Address at which to listen for gRPC connections." default:":9443"` - 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"` - Insecure bool `help:"Run without mTLS credentials. If you supply this flag --tls-server-certs-dir will be ignored."` - MaxRecvMessageSize int `help:"Maximum size of received messages in MB." default:"4"` - + Network string `help:"Network on which to listen for gRPC connections." default:"tcp"` + Address string `help:"Address at which to listen for gRPC connections." default:":9443"` + 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"` + Insecure bool `help:"Run without mTLS credentials. If you supply this flag --tls-server-certs-dir will be ignored."` + MaxRecvMessageSize int `help:"Maximum size of received messages in MB." default:"4"` } // Run this Function. @@ -30,7 +29,7 @@ func (c *CLI) Run() error { function.Listen(c.Network, c.Address), function.MTLSCertificates(c.TLSCertsDir), function.Insecure(c.Insecure), - function.MaxRecvMessageSize(c.MaxRecvMessageSize * 1024 * 1024)) + function.MaxRecvMessageSize(c.MaxRecvMessageSize*1024*1024)) } func main() {