Skip to content

Commit

Permalink
feat(ci): ci var minio storage fix oss rm log
Browse files Browse the repository at this point in the history
  • Loading branch information
sevennt committed Oct 24, 2024
1 parent cc9d6c2 commit 5f9d9b3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
3 changes: 0 additions & 3 deletions aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ func (a *S3) GetAsReader(ctx context.Context, key string, options ...GetOptions)
return nil, fmt.Errorf("GetAsReader getBucketAndKey fail, err: %w", err)
}

fmt.Printf("key--------------->"+"%+v\n", key)
input := &s3.GetObjectInput{
Bucket: aws.String(bucketName),
Key: aws.String(key),
Expand All @@ -120,7 +119,6 @@ func (a *S3) GetAsReader(ctx context.Context, key string, options ...GetOptions)
if err != nil {
// https://aws.github.io/aws-sdk-go-v2/docs/migrating/
if isNotFound(err) {
fmt.Printf("22--------------->"+"%+v\n", 22)
return nil, nil
}
return nil, fmt.Errorf("GetAsReader GetObject fail, err: %w", err)
Expand Down Expand Up @@ -312,7 +310,6 @@ func (a *S3) Head(ctx context.Context, key string, attributes []string) (map[str
Key: aws.String(key),
}

fmt.Printf("key--------------->"+"%+v\n", key)
result, err := a.client.HeadObject(ctx, input)
if err != nil {
if isNotFound(err) {
Expand Down
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ require (
github.com/aws/aws-sdk-go-v2/credentials v1.17.41
github.com/aws/aws-sdk-go-v2/service/s3 v1.58.3
github.com/aws/smithy-go v1.22.0
github.com/golang/snappy v0.0.4
github.com/gotomicro/ego v1.2.2
github.com/spf13/cast v1.4.1
github.com/stretchr/testify v1.8.4
go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace v0.44.0
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.44.0
Expand Down Expand Up @@ -47,7 +47,6 @@ require (
github.com/prometheus/procfs v0.7.3 // indirect
github.com/rogpeppe/go-internal v1.11.0 // indirect
github.com/samber/lo v1.39.0 // indirect
github.com/spf13/cast v1.4.1 // indirect
go.opentelemetry.io/otel/metric v1.18.0 // indirect
go.uber.org/atomic v1.7.0 // indirect
go.uber.org/goleak v1.2.1 // indirect
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaS
github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg=
github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM=
github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
Expand Down

0 comments on commit 5f9d9b3

Please sign in to comment.