Skip to content

Commit

Permalink
chore(fmt): go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Franco committed Nov 20, 2024
1 parent 49b8476 commit cc8d6a3
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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() {
Expand Down

0 comments on commit cc8d6a3

Please sign in to comment.