Skip to content

Commit

Permalink
fix: exclusive use of map
Browse files Browse the repository at this point in the history
missed on 189c119
  • Loading branch information
handlename committed May 22, 2024
1 parent 1409554 commit 5620d99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions router.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ func (r *Router) putToS3(ctx context.Context, dest destination, body io.ReadSeek
}

func (r *Router) defaultS3Client() *s3.Client {
r.s3Lock.Lock()
defer r.s3Lock.Unlock()
return r.s3[r.awsConf.Region]
}

Expand Down

0 comments on commit 5620d99

Please sign in to comment.