From 19466be6ce782a1675da3d494c4a74483058ce02 Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Thu, 9 Jan 2025 11:06:14 -0500 Subject: [PATCH] ktlint --- .../src/aws/sdk/kotlin/runtime/auth/AuthTokenGenerator.kt | 2 +- .../src/aws/sdk/kotlin/services/dsql/DsqlAuthTokenGenerator.kt | 2 +- .../aws/sdk/kotlin/services/dsql/DsqlAuthTokenGeneratorTest.kt | 1 - .../src/aws/sdk/kotlin/services/rds/RdsAuthTokenGenerator.kt | 3 +-- services/rds/common/test/RdsAuthTokenGeneratorTest.kt | 1 - 5 files changed, 3 insertions(+), 6 deletions(-) diff --git a/aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/AuthTokenGenerator.kt b/aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/AuthTokenGenerator.kt index a54d9172789..38955755a10 100644 --- a/aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/AuthTokenGenerator.kt +++ b/aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/AuthTokenGenerator.kt @@ -37,7 +37,7 @@ public class AuthTokenGenerator( public val credentialsProvider: CredentialsProvider = DefaultChainCredentialsProvider(), public val credentialsRefreshBuffer: Duration = 10.seconds, public val signer: AwsSigner = DefaultAwsSigner, - public val clock: Clock = Clock.System + public val clock: Clock = Clock.System, ) { private lateinit var credentials: ExpiringValue diff --git a/services/dsql/common/src/aws/sdk/kotlin/services/dsql/DsqlAuthTokenGenerator.kt b/services/dsql/common/src/aws/sdk/kotlin/services/dsql/DsqlAuthTokenGenerator.kt index 231f26c1395..afc4b7fd76b 100644 --- a/services/dsql/common/src/aws/sdk/kotlin/services/dsql/DsqlAuthTokenGenerator.kt +++ b/services/dsql/common/src/aws/sdk/kotlin/services/dsql/DsqlAuthTokenGenerator.kt @@ -26,7 +26,7 @@ public class DsqlAuthTokenGenerator( public val credentialsProvider: CredentialsProvider = DefaultChainCredentialsProvider(), public val credentialsRefreshBuffer: Duration = 10.seconds, public val signer: AwsSigner = DefaultAwsSigner, - public val clock: Clock = Clock.System + public val clock: Clock = Clock.System, ) { private val generator = AuthTokenGenerator("dsql", credentialsProvider, credentialsRefreshBuffer, signer, clock) diff --git a/services/dsql/common/test/aws/sdk/kotlin/services/dsql/DsqlAuthTokenGeneratorTest.kt b/services/dsql/common/test/aws/sdk/kotlin/services/dsql/DsqlAuthTokenGeneratorTest.kt index 50757464ef5..069bc8d6241 100644 --- a/services/dsql/common/test/aws/sdk/kotlin/services/dsql/DsqlAuthTokenGeneratorTest.kt +++ b/services/dsql/common/test/aws/sdk/kotlin/services/dsql/DsqlAuthTokenGeneratorTest.kt @@ -14,7 +14,6 @@ import kotlinx.coroutines.test.runTest import kotlin.test.Test import kotlin.test.assertContains import kotlin.test.assertFalse -import kotlin.test.assertTrue import kotlin.time.Duration.Companion.seconds class DsqlAuthTokenGeneratorTest { diff --git a/services/rds/common/src/aws/sdk/kotlin/services/rds/RdsAuthTokenGenerator.kt b/services/rds/common/src/aws/sdk/kotlin/services/rds/RdsAuthTokenGenerator.kt index 1911842a925..88255047f0d 100644 --- a/services/rds/common/src/aws/sdk/kotlin/services/rds/RdsAuthTokenGenerator.kt +++ b/services/rds/common/src/aws/sdk/kotlin/services/rds/RdsAuthTokenGenerator.kt @@ -12,7 +12,6 @@ import aws.smithy.kotlin.runtime.auth.awssigning.AwsSigner import aws.smithy.kotlin.runtime.auth.awssigning.DefaultAwsSigner import aws.smithy.kotlin.runtime.net.url.Url import aws.smithy.kotlin.runtime.time.Clock -import kotlinx.coroutines.runBlocking import kotlin.apply import kotlin.time.Duration import kotlin.time.Duration.Companion.seconds @@ -28,7 +27,7 @@ public class RdsAuthTokenGenerator( public val credentialsProvider: CredentialsProvider = DefaultChainCredentialsProvider(), public val credentialsRefreshBuffer: Duration = 10.seconds, public val signer: AwsSigner = DefaultAwsSigner, - public val clock: Clock = Clock.System + public val clock: Clock = Clock.System, ) { private val generator = AuthTokenGenerator("rds-db", credentialsProvider, credentialsRefreshBuffer, signer, clock) diff --git a/services/rds/common/test/RdsAuthTokenGeneratorTest.kt b/services/rds/common/test/RdsAuthTokenGeneratorTest.kt index cb3e5087979..917eb504c93 100644 --- a/services/rds/common/test/RdsAuthTokenGeneratorTest.kt +++ b/services/rds/common/test/RdsAuthTokenGeneratorTest.kt @@ -14,7 +14,6 @@ import kotlinx.coroutines.test.runTest import kotlin.test.Test import kotlin.test.assertContains import kotlin.test.assertFalse -import kotlin.test.assertTrue import kotlin.time.Duration.Companion.seconds class RdsAuthTokenGeneratorTest {