Only use S3 API when API keys are registered

This commit is contained in:
Eduard Urbach 2018-12-10 18:25:51 +09:00
parent 924f764e3f
commit a0b69fc953

View File

@ -15,6 +15,10 @@ import (
var spaces *minio.Client
func init() {
if arn.APIKeys.S3.ID == "" || arn.APIKeys.S3.Secret == "" {
return
}
go func() {
var err error
endpoint := "sfo2.digitaloceanspaces.com"