mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-08-20 07:02:09 +08:00
update s3 session cache key (#6923)
This commit is contained in:
parent
ab49540d2b
commit
877b9b788a
@ -31,7 +31,8 @@ func createSession(awsAccessKeyId, awsSecretAccessKey, region, endpoint string,
|
||||
sessionsLock.Lock()
|
||||
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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user