Skip to content

Commit

Permalink
got the region
Browse files Browse the repository at this point in the history
  • Loading branch information
ItamarYuran committed Dec 24, 2024
1 parent 1692af8 commit d9a5387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/block/s3/client_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (c *ClientCache) cachedClientByRegion(region string) (*s3.Client, bool) {

func (c *ClientCache) refreshBucketRegion(ctx context.Context, bucket string) string {
region, err := c.s3RegionGetter(ctx, bucket)
if err != nil {
if err != nil || region == "" {
// fallback to default region
region = c.awsConfig.Region
logging.FromContext(ctx).
Expand Down

0 comments on commit d9a5387

Please sign in to comment.