0
0
mirror of https://github.com/thegeeklab/wp-plugin-go.git synced 2024-11-21 14:10:39 +00:00

Format code

This commit is contained in:
Don 2020-09-10 13:06:29 -07:00
parent c5ec06ee53
commit 1304e6261a
2 changed files with 8 additions and 8 deletions

View File

@ -48,7 +48,7 @@ func ExitMessage(message interface{}) ExitError {
func ExitMessagef(format string, a ...interface{}) ExitError { func ExitMessagef(format string, a ...interface{}) ExitError {
return ExitError{ return ExitError{
message: fmt.Errorf(format, a...), message: fmt.Errorf(format, a...),
code: 1, code: 1,
} }
} }

View File

@ -84,13 +84,13 @@ func HTTP(ctx context.Context) context.Context {
TLSHandshakeDone: func(cs tls.ConnectionState, err error) { TLSHandshakeDone: func(cs tls.ConnectionState, err error) {
logrus.WithFields(logrus.Fields{ logrus.WithFields(logrus.Fields{
"version": cs.Version, "version": cs.Version,
"handshake-complete": cs.HandshakeComplete, "handshake-complete": cs.HandshakeComplete,
"did-resume": cs.DidResume, "did-resume": cs.DidResume,
"cipher-suite": cs.CipherSuite, "cipher-suite": cs.CipherSuite,
"negotiated-protocol": cs.NegotiatedProtocol, "negotiated-protocol": cs.NegotiatedProtocol,
"server-name": cs.ServerName, "server-name": cs.ServerName,
"error": err, "error": err,
}).Trace("ClientTrace.TLSHandshakeDone") }).Trace("ClientTrace.TLSHandshakeDone")
}, },