From c91ce2416dd7eb8467a66074cfca5fa1e05a2b88 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Mon, 15 Aug 2022 12:29:23 -0700 Subject: [PATCH] go mod tidy --- go.sum | 1 - pipedream.go | 4 ---- 2 files changed, 5 deletions(-) diff --git a/go.sum b/go.sum index 5816329..0936274 100644 --- a/go.sum +++ b/go.sum @@ -105,7 +105,6 @@ github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkU github.com/spf13/cobra v1.0.0 h1:6m/oheQuQ13N9ks4hubMG6BnvwOeaJrqSPLahSnczz8= github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= -github.com/spf13/pflag v1.0.3 h1:zPAT6CGy6wXeQ7NtTnaTerfKOsV6V6F8agHXFiazDkg= github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= diff --git a/pipedream.go b/pipedream.go index b817676..4733fa2 100644 --- a/pipedream.go +++ b/pipedream.go @@ -172,7 +172,6 @@ func (m *MultipartUpload) Send(reader io.Reader, path string) chan Event { } func (m *MultipartUpload) run(ch chan Event) { - // Set defaults if m.MaxRetries == 0 { m.MaxRetries = 3 @@ -285,7 +284,6 @@ func (m *MultipartUpload) run(ch chan Event) { Bytes: totalBytes, Result: res, } - } // uploadPart performs the technical S3 stuff to upload one part of the @@ -325,13 +323,11 @@ func (m MultipartUpload) uploadPart(ch chan Event, chunk []byte, partNum int) (* tryNum++ } else { - // Success return &s3.CompletedPart{ ETag: res.ETag, PartNumber: aws.Int64(int64(partNum)), }, nil - } }