chalet
3 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
1 deletions
-
weed/storage/backend/s3_backend/s3_sessions.go
|
@ -31,7 +31,8 @@ func createSession(awsAccessKeyId, awsSecretAccessKey, region, endpoint string, |
|
|
sessionsLock.Lock() |
|
|
sessionsLock.Lock() |
|
|
defer sessionsLock.Unlock() |
|
|
defer sessionsLock.Unlock() |
|
|
|
|
|
|
|
|
if t, found := s3Sessions[region]; found { |
|
|
|
|
|
|
|
|
cacheKey := fmt.Sprintf("%s|%s", region, endpoint) |
|
|
|
|
|
if t, found := s3Sessions[cacheKey]; found { |
|
|
return t, nil |
|
|
return t, nil |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|