Skip to content

Commit

Permalink
chore: update BucketInfo member name
Browse files Browse the repository at this point in the history
  • Loading branch information
phantumcode committed Sep 3, 2024
1 parent fae05ca commit 2079889
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,12 @@ private void configure(
this.defaultStorageService = storageServiceFactory.create(
context,
region,
bucket.getBucketInfo().getName(),
bucket.getBucketInfo().getBucketName(),
clientProvider);
this.awss3StorageServiceContainer = new AWSS3StorageServiceContainer(
context, storageServiceFactory,
(S3StorageTransferClientProvider) clientProvider);
this.awss3StorageServiceContainer.put(bucket.getBucketInfo().getName(), this.defaultStorageService);
this.awss3StorageServiceContainer.put(bucket.getBucketInfo().getBucketName(), this.defaultStorageService);
} catch (RuntimeException exception) {
throw new StorageException(
"Failed to create storage service.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ internal class AWSS3StorageServiceContainer(
*/
fun get(resolvedStorageBucket: ResolvedStorageBucket): AWSS3StorageService {
synchronized(lock) {
val bucketName: String = resolvedStorageBucket.bucketInfo.name
val bucketName: String = resolvedStorageBucket.bucketInfo.bucketName
var service = awsS3StorageServicesByBucketName.get(bucketName)
if (service == null) {
val region: String = resolvedStorageBucket.bucketInfo.region
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
*/
package com.amplifyframework.storage

data class BucketInfo(val name: String, val region: String)
data class BucketInfo(val bucketName: String, val region: String)

0 comments on commit 2079889

Please sign in to comment.