From 14095549fc9fc582213e01a203ef69c401220b16 Mon Sep 17 00:00:00 2001 From: NAGATA Hiroaki Date: Tue, 21 May 2024 07:31:29 +0900 Subject: [PATCH] fix: missing defer Co-authored-by: FUJIWARA Shunichiro --- router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router.go b/router.go index 9f4339f..4e5c091 100644 --- a/router.go +++ b/router.go @@ -296,7 +296,7 @@ func (r *Router) s3Client(ctx context.Context, bucket string) (*s3.Client, error } r.s3Lock.Lock() - r.s3Lock.Unlock() + defer r.s3Lock.Unlock() if s3, ok := r.s3[bucketRegion]; ok { return s3, nil