Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
gesellix committed Jul 28, 2024
1 parent 6070d8d commit a37b322
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions api-client/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@ dependencies {
}
implementation("de.gesellix:docker-remote-api-model-1-41") {
version {
strictly("[2023-10-01T01-01-01,)")
strictly("[2024-01-01T01-01-01,)")
}
}
implementation("de.gesellix:docker-engine") {
version {
strictly("[2023-10-01T01-01-01,)")
strictly("[2024-01-01T01-01-01,)")
}
}
implementation("de.gesellix:docker-filesocket") {
version {
strictly("[2023-09-30T01-01-01,)")
strictly("[2024-01-01T01-01-01,)")
}
}
implementation("org.slf4j:slf4j-api") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ open class ApiClient(
return requestStream(request, client)
}

protected inline fun requestFrames(requestConfig: RequestConfig, expectMultiplexedResponse: Boolean = false): ApiInfrastructureResponse<Frame> {
protected fun requestFrames(requestConfig: RequestConfig, expectMultiplexedResponse: Boolean = false): ApiInfrastructureResponse<Frame> {
val engineRequest = EngineRequest(requestConfig.method, requestConfig.path).also {
it.headers = requestConfig.headers
it.query = requestConfig.query
Expand Down Expand Up @@ -302,7 +302,7 @@ open class ApiClient(
}
}

protected inline fun requestFrames(request: Request, client: OkHttpClient, expectMultiplexedResponse: Boolean = false): ApiInfrastructureResponse<Frame> {
protected fun requestFrames(request: Request, client: OkHttpClient, expectMultiplexedResponse: Boolean = false): ApiInfrastructureResponse<Frame> {
val response = client.newCall(request).execute()
val mediaType = response.header(ContentType)?.substringBefore(";")?.lowercase(Locale.getDefault())

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ inline fun <reified T : Any?> ResponseBody?.consumeStream(mediaType: String?): F
}
}

inline fun ResponseBody?.consumeFrames(mediaType: String?, expectMultiplexedResponse: Boolean = false): Flow<Frame> {
fun ResponseBody?.consumeFrames(mediaType: String?, expectMultiplexedResponse: Boolean = false): Flow<Frame> {
if (this == null) {
return emptyFlow()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
@DockerEngineAvailable
class ImageApiIntegrationTest {

private static Logger log = LoggerFactory.getLogger(ImageApiIntegrationTest.class);
private static final Logger log = LoggerFactory.getLogger(ImageApiIntegrationTest.class);

@InjectDockerClient
private EngineApiClient engineApiClient;
Expand Down

0 comments on commit a37b322

Please sign in to comment.