From 37578929d4f74ec9c8b610df691918b79cee79ca Mon Sep 17 00:00:00 2001 From: chrislu Date: Mon, 11 Jul 2022 01:30:00 -0700 Subject: [PATCH] fix compilation --- weed/iamapi/iamapi_management_handlers.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/weed/iamapi/iamapi_management_handlers.go b/weed/iamapi/iamapi_management_handlers.go index 18cfe9f6e..994224688 100644 --- a/weed/iamapi/iamapi_management_handlers.go +++ b/weed/iamapi/iamapi_management_handlers.go @@ -495,9 +495,7 @@ func (iama *IamApiServer) DoActions(w http.ResponseWriter, r *http.Request) { return } if changed { - s3cfgLock.Lock() err := iama.s3ApiConfig.PutS3ApiConfiguration(s3cfg) - s3cfgLock.Unlock() if err != nil { writeIamErrorResponse(w, r, fmt.Errorf(iam.ErrCodeServiceFailureException), "", "", err) return