Remove default region

This commit is contained in:
Vitaliy Filippov 2021-07-27 13:53:34 +03:00
parent b58f8589e5
commit cc7645db7d

View file

@ -9,7 +9,6 @@ import (
const (
geesefsCmd = "geesefs"
defaultRegion = "us-east-1"
)
// Implements Mounter
@ -22,15 +21,10 @@ type geesefsMounter struct {
}
func newGeeseFSMounter(meta *s3.FSMeta, cfg *s3.Config) (Mounter, error) {
region := cfg.Region
// if endpoint is set we need a default region
if region == "" && cfg.Endpoint != "" {
region = defaultRegion
}
return &geesefsMounter{
meta: meta,
endpoint: cfg.Endpoint,
region: region,
region: cfg.Region,
accessKeyID: cfg.AccessKeyID,
secretAccessKey: cfg.SecretAccessKey,
}, nil