Skip to content

Commit

Permalink
with docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ItamarYuran committed Dec 24, 2024
1 parent d9a5387 commit acc4cc7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/block/s3/client_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +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)
// error can be nil also in case region is empty
if err != nil || region == "" {
// fallback to default region
region = c.awsConfig.Region
Expand Down

0 comments on commit acc4cc7

Please sign in to comment.