Skip to content

Commit

Permalink
Validate fix for hypothetical generated api client leak (#12009)
Browse files Browse the repository at this point in the history
  • Loading branch information
gosusnp committed Apr 8, 2024
1 parent 0a8d7d2 commit 94e5fa3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion airbyte-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,12 @@ private def updateApiClientWithFailsafe(def clientPath) {
'val response = client.newCall(request).execute()',
'''val call = client.newCall(request)
val failsafeCall = FailsafeCall.with(policy).compose(call)
val response: Response = failsafeCall.execute()''')
val response: Response = failsafeCall.execute()
return response.use { processResponse(response) }
}
protected inline fun <reified T: Any?> processResponse(response: Response): ApiResponse<T?> {''')

// add imports if not exist
if (!apiClientFileText.contains("import dev.failsafe.RetryPolicy")) {
Expand Down

0 comments on commit 94e5fa3

Please sign in to comment.