fixed typo

This commit is contained in:
2021-09-14 15:12:09 +02:00
parent 4c4ef95ee7
commit 2b25003344
3 changed files with 6 additions and 6 deletions

View File

@@ -16,7 +16,7 @@ type AppConfig struct {
S3AccessKey string
S3SecretKey string
S3SSL bool
S3Buket string
S3Bucket string
CacheTTL time.Duration
CacheCleanup time.Duration
Address string
@@ -54,14 +54,14 @@ func setupS3Client(config AppConfig) (*minio.Client, error) {
return nil, err
}
exists, err := minioClient.BucketExists(context.Background(), config.S3Buket)
exists, err := minioClient.BucketExists(context.Background(), config.S3Bucket)
if err != nil {
return nil, err
}
if !exists {
return nil, fmt.Errorf("Bucket '%s' does not exist", config.S3Buket)
return nil, fmt.Errorf("Bucket '%s' does not exist", config.S3Bucket)
}
return minioClient, nil