Skip to content

Commit

Permalink
Fix init of workload api client for airbyte-cron (#10228)
Browse files Browse the repository at this point in the history
  • Loading branch information
gosusnp committed Dec 6, 2023
1 parent 85fd659 commit a3a1d49
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import java.time.Duration
class ApiBeanFactory {
@Singleton
fun workloadApiClient(
@Named("internalApiScheme") internalApiScheme: String,
@Value("\${airbyte.workload-api.base-path}") workloadApiBasePath: String,
@Value("\${airbyte.workload-api.connect-timeout-seconds}") connectTimeoutSeconds: Long,
@Value("\${airbyte.workload-api.read-timeout-seconds}") readTimeoutSeconds: Long,
Expand Down Expand Up @@ -50,7 +49,7 @@ class ApiBeanFactory {
.withMaxRetries(maxRetries)
.build()

return WorkloadApi("$internalApiScheme://$workloadApiBasePath", okHttpClient, retryPolicy)
return WorkloadApi(workloadApiBasePath, okHttpClient, retryPolicy)
}

@Singleton
Expand Down

0 comments on commit a3a1d49

Please sign in to comment.