summaryrefslogtreecommitdiff
path: root/lbc/lbc.go
diff options
context:
space:
mode:
Diffstat (limited to 'lbc/lbc.go')
-rw-r--r--lbc/lbc.go18
1 files changed, 14 insertions, 4 deletions
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,