Skip to content

Commit

Permalink
addressing PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ianbotsf committed Jul 17, 2023
1 parent f651858 commit c2c6e35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class EndpointDiscovererGenerator(private val ctx: CodegenContext, private val d

private fun KotlinWriter.renderAsEndpointResolver() {
withBlock(
"internal suspend fun asEndpointResolver(client: #T, delegate: #T) = #T { request ->",
"internal fun asEndpointResolver(client: #T, delegate: #T) = #T { request ->",
"}",
clientSymbol,
EndpointResolverAdapterGenerator.getSymbol(ctx.settings),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class EndpointDiscovererGeneratorTest {

actual.shouldContainOnlyOnceWithDiff(
"""
internal suspend fun asEndpointResolver(client: TestClient, delegate: EndpointResolverAdapter) = EndpointResolver { request ->
internal fun asEndpointResolver(client: TestClient, delegate: EndpointResolverAdapter) = EndpointResolver { request ->
val identity = request.identity
require(identity is Credentials) { "Endpoint discovery requires AWS credentials" }
Expand Down

0 comments on commit c2c6e35

Please sign in to comment.