From 6e5711a1136ae5ed2e0533f1a5d39bb71fb668b5 Mon Sep 17 00:00:00 2001 From: Will Hawkins Date: Fri, 18 Mar 2022 21:20:30 -0400 Subject: Make sure that we format with short lines. --- lbc/lbc.go | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'lbc') diff --git a/lbc/lbc.go b/lbc/lbc.go index e12fc71..5dd1214 100644 --- a/lbc/lbc.go +++ b/lbc/lbc.go @@ -72,13 +72,18 @@ func (cr *countingReader) Read(p []byte) (n int, err error) { return } -func (lbd *LoadBearingConnectionDownload) Start(ctx context.Context, debug bool) bool { +func (lbd *LoadBearingConnectionDownload) Start( + ctx context.Context, + debug bool, +) bool { lbd.downloaded = 0 transport := http2.Transport{} if !utilities.IsInterfaceNil(lbd.KeyLogger) { if debug { - fmt.Printf("Using an SSL Key Logger for this load-bearing download.\n") + fmt.Printf( + "Using an SSL Key Logger for this load-bearing download.\n", + ) } transport.TLSClientConfig = &tls.Config{ KeyLogWriter: lbd.KeyLogger, @@ -171,13 +176,18 @@ func (lbu *LoadBearingConnectionUpload) doUpload(ctx context.Context) bool { return true } -func (lbu *LoadBearingConnectionUpload) Start(ctx context.Context, debug bool) bool { +func (lbu *LoadBearingConnectionUpload) Start( + ctx context.Context, + debug bool, +) bool { lbu.uploaded = 0 transport := http2.Transport{} if !utilities.IsInterfaceNil(lbu.KeyLogger) { if debug { - fmt.Printf("Using an SSL Key Logger for this load-bearing upload.\n") + fmt.Printf( + "Using an SSL Key Logger for this load-bearing upload.\n", + ) } transport.TLSClientConfig = &tls.Config{ KeyLogWriter: lbu.KeyLogger, -- cgit v1.2.3