Skip to content

Commit

Permalink
renamed variables
Browse files Browse the repository at this point in the history
  • Loading branch information
AsterITA committed Jun 5, 2024
1 parent 0fafc55 commit 64ecc19
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,12 @@ final class S3ManagerImpl(blockingExecutionContext: ExecutionContextExecutor)(

def calcContentMd5(byteArray: Array[Byte]): String = new String(Base64.encodeBase64(DigestUtils.md5(byteArray)))

override def generateGetPresignedUrl(containerPath: String, path: String): Try[String] = {
override def generateGetPresignedUrl(bucketName: String, keyName: String): Try[String] = {
Using(S3Presigner.create()) { s3Presigner =>
val objectRequest: GetObjectRequest = GetObjectRequest
.builder()
.bucket(containerPath)
.key(path)
.bucket(bucketName)
.key(keyName)
.build()

val presignRequest: GetObjectPresignRequest = GetObjectPresignRequest
Expand All @@ -186,12 +186,12 @@ final class S3ManagerImpl(blockingExecutionContext: ExecutionContextExecutor)(
}
}

override def generatePutPresignedUrl(containerPath: String, path: String): Try[String] = {
override def generatePutPresignedUrl(bucketName: String, keyName: String): Try[String] = {
Using(S3Presigner.create()) { s3Presigner =>
val objectRequest: PutObjectRequest = PutObjectRequest
.builder()
.bucket(containerPath)
.key(path)
.bucket(bucketName)
.key(keyName)
.build()

val presignRequest: PutObjectPresignRequest = PutObjectPresignRequest
Expand Down

0 comments on commit 64ecc19

Please sign in to comment.