SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
chore(weed/storage/backend/s3_backend): remove unused function (#9715)
Lars Lehtonen21ab68aa94c4
diff --git a/weed/storage/backend/s3_backend/s3_sessions.go b/weed/storage/backend/s3_backend/s3_sessions.goindex b5ae489716..999dc6fe51 100644--- a/weed/storage/backend/s3_backend/s3_sessions.go+++ b/weed/storage/backend/s3_backend/s3_sessions.go@@ -15,17 +15,9 @@ import (var (s3Sessions = make(map[string]s3iface.S3API)- sessionsLock sync.RWMutex+ sessionsLock sync.Mutex)-func getSession(region string) (s3iface.S3API, bool) {- sessionsLock.RLock()- defer sessionsLock.RUnlock()-- sess, found := s3Sessions[region]- return sess, found-}-func createSession(awsAccessKeyId, awsSecretAccessKey, region, endpoint string, forcePathStyle bool) (s3iface.S3API, error) {sessionsLock.Lock()@@ -56,7 +48,7 @@ func createSession(awsAccessKeyId, awsSecretAccessKey, region, endpoint string,t := s3.New(sess)- s3Sessions[region] = t+ s3Sessions[cacheKey] = treturn t, nil