diff --git a/bag_replicator/src/main/scala/weco/storage_service/bag_replicator/Main.scala b/bag_replicator/src/main/scala/weco/storage_service/bag_replicator/Main.scala index 00ed5cd81..fe6e6843c 100644 --- a/bag_replicator/src/main/scala/weco/storage_service/bag_replicator/Main.scala +++ b/bag_replicator/src/main/scala/weco/storage_service/bag_replicator/Main.scala @@ -3,7 +3,6 @@ package weco.storage_service.bag_replicator import akka.actor.ActorSystem import com.azure.storage.blob.{BlobServiceClient, BlobServiceClientBuilder} import com.typesafe.config.Config - import software.amazon.awssdk.services.s3.{S3Client, S3AsyncClient} import software.amazon.awssdk.services.s3.presigner.S3Presigner import software.amazon.awssdk.services.sqs.SqsAsyncClient diff --git a/bag_replicator/src/test/scala/weco/storage/transfer/fixtures/S3TransferManagerFixtures.scala b/bag_replicator/src/test/scala/weco/storage/transfer/fixtures/S3TransferManagerFixtures.scala index 12fa2e42b..12ffe60da 100644 --- a/bag_replicator/src/test/scala/weco/storage/transfer/fixtures/S3TransferManagerFixtures.scala +++ b/bag_replicator/src/test/scala/weco/storage/transfer/fixtures/S3TransferManagerFixtures.scala @@ -9,7 +9,7 @@ import java.net.URI trait S3TransferManagerFixtures extends S3Fixtures { def createS3TransferManagerWithEndpoint(endpoint: String): S3TransferManager = { val s3AsyncClient = - S3AsyncClient.builder() + S3AsyncClient.crtBuilder() .credentialsProvider(s3Credentials) .forcePathStyle(true) .endpointOverride(new URI(endpoint))