Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions server/storage/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@
func (s *S3Storage) IsRangeSupported() bool { return true }

func getAwsConfig(ctx context.Context, accessKey, secretKey string) (aws.Config, error) {
if accessKey == "" || secretKey == "" {
return config.LoadDefaultConfig(ctx, config.WithRegion(region))

Check failure on line 183 in server/storage/s3.go

View workflow job for this annotation

GitHub Actions / Linting

undefined: region) (typecheck)

Check failure on line 183 in server/storage/s3.go

View workflow job for this annotation

GitHub Actions / Linting

undefined: region) (typecheck)

Check failure on line 183 in server/storage/s3.go

View workflow job for this annotation

GitHub Actions / Linting

undefined: region (typecheck)

Check failure on line 183 in server/storage/s3.go

View workflow job for this annotation

GitHub Actions / Test with 1.24

undefined: region

Check failure on line 183 in server/storage/s3.go

View workflow job for this annotation

GitHub Actions / Test with 1.22

undefined: region

Check failure on line 183 in server/storage/s3.go

View workflow job for this annotation

GitHub Actions / Test with 1.23

undefined: region
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

region is undefined.

}
return config.LoadDefaultConfig(ctx,
config.WithCredentialsProvider(credentials.StaticCredentialsProvider{
Value: aws.Credentials{
Expand Down
Loading