From 5620d9960756e57532e098baf73520abb9f78f5c Mon Sep 17 00:00:00 2001 From: handlename Date: Wed, 22 May 2024 14:23:24 +0900 Subject: [PATCH] fix: exclusive use of map missed on 189c1190f06f7090693a01a3ceaf3b1a216c572f --- router.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/router.go b/router.go index 4e5c091..f7609fd 100644 --- a/router.go +++ b/router.go @@ -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] }