Changeset 0.22.8 (#150)
This commit is contained in:
@@ -269,10 +269,10 @@ func (s *S3Store) Stats(ctx context.Context) (*StorageStats, error) {
|
||||
}
|
||||
stats.Healthy = true
|
||||
|
||||
// Count objects under the attachments prefix
|
||||
attPrefix := s.fullKey("attachments/")
|
||||
// Count objects under the files prefix
|
||||
filePrefix := s.fullKey("files/")
|
||||
objectsCh := s.client.ListObjects(ctx, s.bucket, minio.ListObjectsOptions{
|
||||
Prefix: attPrefix,
|
||||
Prefix: filePrefix,
|
||||
Recursive: true,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user